Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
hrplib
hrpCollision
Opcode
Ice
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
}
IceMaths::Plane::Set
inline_ Plane & Set(float nx, float ny, float nz, float _d)
Definition:
OPC_IceHook.h:37
IceMaths::Point
Definition:
OPC_IceHook.h:26
IceMaths::Plane::n
Point n
The normal to the plane.
Definition:
OPC_IceHook.h:54
Stdafx.h
IceMaths::Plane
Definition:
OPC_IceHook.h:18
IceMaths
Definition:
ColdetModel.h:24
IceMaths::Point::Normalize
inline_ Point & Normalize()
Normalizes the vector.
Definition:
OPC_IceHook.h:270
IceMaths::Plane::d
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