#include <Plane.h>
Public Member Functions | |
| Plane () | |
| Basic constructor. Sets A,B,C,D to 0. | |
| Plane (const Propane::Math::Vector3 &newAbc, float newD) | |
| Data-based constructor. | |
| void | fromTriangle (const Vector3 &tri1, const Vector3 &tri2, const Vector3 &tri3) |
| Create a plane from a triangle. | |
| void | setPlaneNormal (const Propane::Math::Vector3 &newAbc) |
| Set the plane normal (A,B,C). | |
| void | setPlaneIntercept (float newD) |
| Set the plane intercept (D). | |
| bool | intersect (const Plane &p2, const Plane &p3, Vector3 &intersectPoint) const |
| Check for plane intersection. | |
| Propane::Math::Vector4 | getABCD () const |
| Get the ABCD representation of this plane. | |
| PlanePointClassification | classifyPlane (const Vector3 &v) const |
| Classify a point as being on, in front of, or behind the plane. | |
| float | getDistance (const Vector3 &point) const |
| Get the distance from a point to the plane. | |
| void | setA (float na) |
| Set the A component of the normal. | |
| void | setB (float nb) |
| Set the B component of the normal. | |
| void | setC (float nc) |
| Set the C component of the normal. | |
| void | setD (float nd) |
| Set the D component (plane intercept). | |
|
||||||||||||
|
Data-based constructor.
|
|
|
Classify a point as being on, in front of, or behind the plane.
|
|
||||||||||||||||
|
Create a plane from a triangle.
|
|
|
Get the ABCD representation of this plane.
|
|
|
Get the distance from a point to the plane.
|
|
||||||||||||||||
|
Check for plane intersection. Stores the intersection of the three planes in the referenced intersectPoint vector.
|
|
|
Set the A component of the normal.
|
|
|
Set the B component of the normal.
|
|
|
Set the C component of the normal.
|
|
|
Set the D component (plane intercept).
|
|
|
Set the plane intercept (D).
|
|
|
Set the plane normal (A,B,C).
|
1.4.6