#include <tri.h>
Public Member Functions | |
| void | Compute_Normal () |
| bool | Contains_Point (const Vector3 &ipoint) const |
| void | Find_Dominant_Plane (int *axis1, int *axis2) const |
Public Attributes | |
| const Vector3 * | N |
| const Vector3 * | V [3] |
TriClass When the math library needs to deal with triangles, this will be the form used. The initial reason for this class is for Commando's collision detection code. Initially I wrote custom code inside the render object for the terrain to perform collision detection. Moving the low-level geometrical collision code into the math library makes it more re-useable and independent from changes in the rendering code.
| void TriClass::Find_Dominant_Plane | ( | int * | axis1, |
| int * | axis2 ) const |