AI_Plane Class Reference
[Mathematics]
#include <AI_Plane.h>
Detailed Description
A AI_Plane in 3d space.(C) 2004 RadonLabs GmbH
Public Member Functions | |
| AI_Plane () | |
| default constructor | |
| AI_Plane (float A, float B, float C, float D) | |
| constructor 1 | |
| AI_Plane (const AI_Plane &p) | |
| constructor 2 | |
| AI_Plane (const AI_Vector3 &v0, const AI_Vector3 &v1, const AI_Vector3 &v2) | |
| constructor 3 | |
| void | set (float A, float B, float C, float D) |
| set contents | |
| void | set (const AI_Vector3 &v0, const AI_Vector3 &v1, const AI_Vector3 &v2) |
| construct AI_Plane from 3 vectors | |
| float | distance (const AI_Vector3 &v) const |
| compute distance of point to AI_Plane | |
| AI_Vector3 | normal () const |
| get AI_Plane normal | |
| bool | intersect (const AI_Line3 &l, float &t) const |
| get intersecting t of line with one sided AI_Plane | |
| bool | intersect (const AI_Plane &p, AI_Line3 &l) const |
| get AI_Plane/AI_Plane intersection | |
Public Attributes | |
| float | a |
| float | b |
| float | c |
| float | d |
Constructor & Destructor Documentation
| AI_Plane::AI_Plane | ( | ) | [inline] |
default constructor
| AI_Plane::AI_Plane | ( | float | A, | |
| float | B, | |||
| float | C, | |||
| float | D | |||
| ) | [inline] |
constructor 1
| AI_Plane::AI_Plane | ( | const AI_Plane & | p | ) | [inline] |
constructor 2
| AI_Plane::AI_Plane | ( | const AI_Vector3 & | v0, | |
| const AI_Vector3 & | v1, | |||
| const AI_Vector3 & | v2 | |||
| ) | [inline] |
constructor 3
Member Function Documentation
| void AI_Plane::set | ( | float | A, | |
| float | B, | |||
| float | C, | |||
| float | D | |||
| ) | [inline] |
set contents
| void AI_Plane::set | ( | const AI_Vector3 & | v0, | |
| const AI_Vector3 & | v1, | |||
| const AI_Vector3 & | v2 | |||
| ) | [inline] |
| float AI_Plane::distance | ( | const AI_Vector3 & | v | ) | const [inline] |
| AI_Vector3 AI_Plane::normal | ( | ) | const [inline] |
| bool AI_Plane::intersect | ( | const AI_Line3 & | l, | |
| float & | t | |||
| ) | const [inline] |
get AI_Plane/AI_Plane intersection
Get AI_Plane/AI_Plane intersection. Return false if planes are parallel.
Member Data Documentation
| float AI_Plane::a |
| float AI_Plane::b |
| float AI_Plane::c |
| float AI_Plane::d |
The documentation for this class was generated from the following file:
