#include <CPlane.h>
Public Member Functions | |
CPlane () | |
constructor | |
CPlane (zfloat a, zfloat b, zfloat c, zfloat d) | |
constructor | |
CPlane (const CVector3 &v1, const CVector3 &v2, const CVector3 &v3) | |
constructor | |
CPlane (const CVector3 &v, const CVector3 &n) | |
constructor | |
CPlane (const CPlane &p, zfloat dist) | |
constructor | |
CVector3 | Norm () const |
Returns the plane normal. | |
CVector3 | NormUnit () const |
returns the normalized plane normal | |
zfloat | Dist (const CVector3 &v) const |
returns the distance between a point and the plane | |
bool | IntersectPlanes (const CPlane &P2, const CPlane &P3, CVector3 &inter) const |
returns the intersection between the plane and other two planes | |
zuint | RayIntersection (const CVector3 &v1, const CVector3 &v2, CVector3 &result) const |
return the intersection between the plane and the segment (v1,v2) | |
zuint | MaxNormCoord () const |
returns which is the maxiest coord of the normal to the plane | |
Public Attributes | |
zfloat | fA |
following plane equation A*x+B*y+C*z+D = 0 | |
zfloat | fB |
following plane equation A*x+B*y+C*z+D = 0 | |
zfloat | fC |
following plane equation A*x+B*y+C*z+D = 0 | |
zfloat | fD |
following plane equation A*x+B*y+C*z+D = 0 |
plane definition class
|
constructor
|
|
constructor
|
|
constructor
|
|
constructor v is plane origin and n is the normal |
|
constructor dist is the distance respect plane p |
|
returns the distance between a point and the plane
|
|
returns the intersection between the plane and other two planes returns false if there is no solution. |
|
returns which is the maxiest coord of the normal to the plane
|
|
Returns the plane normal.
|
|
returns the normalized plane normal
|
|
return the intersection between the plane and the segment (v1,v2)
returns the following values:
|
|
following plane equation A*x+B*y+C*z+D = 0
|
|
following plane equation A*x+B*y+C*z+D = 0
|
|
following plane equation A*x+B*y+C*z+D = 0
|
|
following plane equation A*x+B*y+C*z+D = 0
|