IcePlane.cpp
Go to the documentation of this file.
1 
8 
11 
17 
20 // Precompiled Header
21 #include "Stdafx.h"
22 
23 using namespace IceMaths;
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 }
inline_ Plane & Set(float nx, float ny, float nz, float _d)
Definition: OPC_IceHook.h:37
Point n
The normal to the plane.
Definition: OPC_IceHook.h:54
inline_ Point & Normalize()
Normalizes the vector.
Definition: OPC_IceHook.h:270
float d
The distance from the origin.
Definition: OPC_IceHook.h:55


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:38