Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TriClass Class Reference

#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 Vector3N
 
const Vector3V [3]
 

Detailed Description

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.

Definition at line 60 of file tri.h.

Member Function Documentation

◆ Compute_Normal()

void TriClass::Compute_Normal ( )
inline

Definition at line 67 of file tri.h.

◆ Contains_Point()

bool TriClass::Contains_Point ( const Vector3 & ipoint) const

Definition at line 201 of file tri.cpp.

◆ Find_Dominant_Plane()

void TriClass::Find_Dominant_Plane ( int * axis1,
int * axis2 ) const

Definition at line 143 of file tri.cpp.

Member Data Documentation

◆ N

const Vector3* TriClass::N

Definition at line 64 of file tri.h.

◆ V

const Vector3* TriClass::V[3]

Definition at line 65 of file tri.h.


The documentation for this class was generated from the following files: