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

Public Member Functions

 BTIntersectStruct (const OBBoxClass &box, const TriClass &tri)
 

Public Attributes

Vector3 D
 
float AE [3][3]
 
float AN [3]
 
Vector3 AxE [3][3]
 
Vector3 A [3]
 
Vector3 E [3]
 
Vector3 N
 
Vector3 TestAxis
 
const OBBoxClassBox
 
const TriClassTri
 

Detailed Description

BTIntersectStruct Scratchpad variables for the OBBox-Triangle intersection functions. One instance of this structure will be used for all of the local variables and its pointer will be handed of to various inline functions for the axis tests. Note that much of the code needs the un-normalized triangle normal. For this reason, I have to compute N rather than copying it from the triangle. (commenting this to avoid re-generating a difficult to find bug that I had)

Definition at line 1139 of file colmathobbtri.cpp.

Constructor & Destructor Documentation

◆ BTIntersectStruct()

BTIntersectStruct::BTIntersectStruct ( const OBBoxClass & box,
const TriClass & tri )
inline

Definition at line 1141 of file colmathobbtri.cpp.

Member Data Documentation

◆ A

Vector3 BTIntersectStruct::A[3]

Definition at line 1162 of file colmathobbtri.cpp.

◆ AE

float BTIntersectStruct::AE[3][3]

Definition at line 1158 of file colmathobbtri.cpp.

◆ AN

float BTIntersectStruct::AN[3]

Definition at line 1159 of file colmathobbtri.cpp.

◆ AxE

Vector3 BTIntersectStruct::AxE[3][3]

Definition at line 1160 of file colmathobbtri.cpp.

◆ Box

const OBBoxClass& BTIntersectStruct::Box

Definition at line 1168 of file colmathobbtri.cpp.

◆ D

Vector3 BTIntersectStruct::D

Definition at line 1157 of file colmathobbtri.cpp.

◆ E

Vector3 BTIntersectStruct::E[3]

Definition at line 1163 of file colmathobbtri.cpp.

◆ N

Vector3 BTIntersectStruct::N

Definition at line 1164 of file colmathobbtri.cpp.

◆ TestAxis

Vector3 BTIntersectStruct::TestAxis

Definition at line 1166 of file colmathobbtri.cpp.

◆ Tri

const TriClass& BTIntersectStruct::Tri

Definition at line 1169 of file colmathobbtri.cpp.


The documentation for this struct was generated from the following file: