Public Member Functions | |
| EMMA_EXPORT | Plane () |
| Default constructor. | |
| EMMA_EXPORT | Plane (const Fusion::Vec3f &n, float D) |
| Construct a plane given normal and distance from origin along normal. | |
| EMMA_EXPORT | Plane (const Fusion::Vec3f &p0, const Fusion::Vec3f &p1, const Fusion::Vec3f &p2) |
| Construct a plane given 3 points. | |
| EMMA_EXPORT | Plane (const Fusion::Vec3f &n, const Fusion::Vec3f &p) |
| Construct a plane given normal and a point to pass through Orientation is given by the normal vector n. | |
| void | getValue (Fusion::Vec3f &normal, float &D) const |
| Returns the normal vector and distance from origin. | |
| EMMA_EXPORT void | setValue (const Fusion::Vec3f &normal, float D) |
| Sets the normal and D. | |
| void | transform (const Matrix &mat, bool matIsInvTranspose) |
| transforms plane by the given matrix if matIsInvTranspose is true, then the inverse transpose matrix has already been computed and should be used | |
| EMMA_EXPORT bool | isInHalfSpace (const Fusion::Vec3f &point) const |
| Returns TRUE if the given point is within the half-space defined by the plane. | |
| EMMA_EXPORT float | distFromPlane (const Fusion::Vec3f &point) |
| Returns the distance from the plane to the passed point as measured along the normal vector. | |
| EMMA_EXPORT void | offset (float d) |
| offset a plane by a given distance | |
| EMMA_EXPORT bool | intersect (const Line &l, Fusion::Vec3f &intersection) const |
| Intersect line and plane. | |
|
||||||||||||
|
Construct a plane given normal and distance from origin along normal. Orientation is given by the normal vector n. |
|
||||||||||||||||
|
Construct a plane given 3 points. Orientation is computed by taking (p1 - p0) x (p2 - p0) and pointing the normal in that direction. |
|
||||||||||||
|
Intersect line and plane.
|
1.4.3