Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IcePlane.cpp
Go to the documentation of this file.
1 
8 
11 
17 
20 // Precompiled Header
21 #include "Stdafx.h"
22 
23 using namespace Opcode;
24 
26 
33 Plane& Plane::Set(const Point& p0, const Point& p1, const Point& p2)
35 {
36  Point Edge0 = p1 - p0;
37  Point Edge1 = p2 - p0;
38 
39  n = Edge0 ^ Edge1;
40  n.Normalize();
41 
42  d = -(p0 | n);
43 
44  return *this;
45 }
46