![]() |
Public API Reference |
#include <math3d_d.h>
Public Methods | |
csDPlane () | |
Initialize to the xy plane. More... | |
csDPlane (const csDVector3 &plane_norm, double d=0) | |
Initialize the plane. More... | |
csDPlane (double a, double b, double c, double d=0) | |
Initialize the plane. More... | |
csDVector3 & | Normal () |
Return the normal vector of this plane. More... | |
const csDVector3 & | Normal () const |
Return the normal vector of this plane. More... | |
double | A () const |
Return the A component of this plane. More... | |
double | B () const |
Return the B component of this plane. More... | |
double | C () const |
Return the C component of this plane. More... | |
double | D () const |
Return the D component of this plane. More... | |
double & | A () |
Return the A component of this plane. More... | |
double & | B () |
Return the B component of this plane. More... | |
double & | C () |
Return the C component of this plane. More... | |
double & | D () |
Return the D component of this plane. More... | |
void | Set (double a, double b, double c, double d) |
Set the value of the four plane components. More... | |
double | Classify (const csDVector3 &pt) const |
Classify the given vector with regards to this plane. More... | |
double | Distance (const csDVector3 &pt) const |
Compute the distance from the given vector to this plane. More... | |
void | Invert () |
Reverses the direction of the plane while maintianing the plane itself. More... | |
void | Normalize () |
Normalizes the plane equation so that 'norm' is a unit vector. More... | |
Static Public Methods | |
double | Classify (double A, double B, double C, double D, const csDVector3 &pt) |
Classify a vector with regards to four plane components. More... | |
Public Attributes | |
csDVector3 | norm |
The normal vector (or the (A,B,C) components). More... | |
double | DD |
The D component of the plane. More... |
The plane is given by the equation AAx + BBy + CCz + DD = 0, Where (AA,BB,CC) is given by the vector 'norm'.
Definition at line 355 of file math3d_d.h.
|
Initialize to the xy plane.
Definition at line 365 of file math3d_d.h. References DD. |
|
Initialize the plane.
Definition at line 368 of file math3d_d.h. References DD. |
|
Initialize the plane.
Definition at line 372 of file math3d_d.h. References DD. |
|
Return the A component of this plane.
Definition at line 389 of file math3d_d.h. References csDVector3::x. |
|
Return the A component of this plane.
Definition at line 380 of file math3d_d.h. References csDVector3::x. Referenced by Classify. |
|
Return the B component of this plane.
Definition at line 391 of file math3d_d.h. References csDVector3::y. |
|
Return the B component of this plane.
Definition at line 382 of file math3d_d.h. References csDVector3::y. Referenced by Classify. |
|
Return the C component of this plane.
Definition at line 393 of file math3d_d.h. References csDVector3::z. |
|
Return the C component of this plane.
Definition at line 384 of file math3d_d.h. References csDVector3::z. Referenced by Classify. |
|
Classify a vector with regards to four plane components.
Definition at line 405 of file math3d_d.h. References A, B, C, D, csDVector3::x, csDVector3::y, and csDVector3::z. |
|
Classify the given vector with regards to this plane.
Definition at line 402 of file math3d_d.h. References DD. Referenced by Distance, csDSquaredDist::PointPlane, and csDMath3::Visible. |
|
Return the D component of this plane.
Definition at line 395 of file math3d_d.h. References DD. |
|
Return the D component of this plane.
Definition at line 386 of file math3d_d.h. References DD. Referenced by Classify. |
|
Compute the distance from the given vector to this plane. This function assumes that 'norm' is a unit vector. If not, the function returns distance times the magnitude of 'norm'. Definition at line 414 of file math3d_d.h. References Classify. |
|
Reverses the direction of the plane while maintianing the plane itself.
Definition at line 418 of file math3d_d.h. References DD. |
|
Return the normal vector of this plane.
Definition at line 377 of file math3d_d.h. |
|
Return the normal vector of this plane.
Definition at line 375 of file math3d_d.h. |
|
Normalizes the plane equation so that 'norm' is a unit vector.
Definition at line 421 of file math3d_d.h. References DD, and csDVector3::Norm. |
|
Set the value of the four plane components.
Definition at line 398 of file math3d_d.h. References DD, csDVector3::x, csDVector3::y, and csDVector3::z. |
|
The D component of the plane.
Definition at line 362 of file math3d_d.h. Referenced by Classify, csDPlane, D, Invert, Normalize, csDMath3::PlanesEqual, and Set. |
|
The normal vector (or the (A,B,C) components).
Definition at line 359 of file math3d_d.h. Referenced by csDMath3::PlanesEqual. |