Public Member Functions |
| float | A () const |
| | Return the A component of this plane.
|
| float & | A () |
| | Return the A component of this plane.
|
| float | B () const |
| | Return the B component of this plane.
|
| float & | B () |
| | Return the B component of this plane.
|
| float | C () const |
| | Return the C component of this plane.
|
| float & | C () |
| | Return the C component of this plane.
|
| float | Classify (const csVector2 &pt) const |
| | Classify the given vector with regards to this plane.
|
| | csPlane2 () |
| | Initialize to the xy plane.
|
| | csPlane2 (const csVector2 &plane_norm, float c=0) |
| | Initialize the plane.
|
| | csPlane2 (float a, float b, float c=0) |
| | Initialize the plane.
|
| | csPlane2 (const csVector2 &v1, const csVector2 &v2) |
| | Initialize the plane given two vectors.
|
| | csPlane2 (const csSegment2 &s) |
| | Initialize the plane given a segment.
|
| float | Distance (const csVector2 &pt) const |
| | Compute the distance from the given vector to this plane.
|
| csVector2 | GetNormal () const |
| | Return the normal vector of this plane (const version).
|
| void | Invert () |
| | Reverses the direction of the plane while maintianing the plane itself.
|
| csVector2 & | Normal () |
| | Return the normal vector of this plane.
|
| void | Normalize () |
| | Normalizes the plane equation so that 'norm' is a unit vector.
|
| void | Set (const csVector2 &v1, const csVector2 &v2) |
| | Initialize the plane given two vectors.
|
| void | Set (const csSegment2 &s) |
| | Initialize the plane given a segment.
|
| void | Set (float a, float b, float c) |
| | Set the value of the four plane components.
|
| float | SquaredDistance (const csVector2 &pt) const |
| | Compute the squared distance between the given vector and this plane.
|
Static Public Member Functions |
| static float | Classify (float A, float B, float C, const csVector2 &pt) |
| | Classify a vector with regards to three plane components.
|
Public Attributes |
| float | CC |
| | The C component of the plane.
|
| csVector2 | norm |
| | The normal vector (or the (A,B) components).
|
A plane in 2D space.
The plane is given by the equation AAx + BBy + CC = 0, Where (AA,BB) is given by the vector 'norm'.
Definition at line 48 of file plane2.h.