ClassifyBoxAgainstPlane
function · unassigned · unreached
- Address
0x6dc810· 239 bytes, up to0x6dc8fe- Signature
uint32_t __fastcall (const NTempest::CAaBox *box, const NTempest::C4Plane *plane)- Meaning
- Classifies a box against a plane as in front, behind or straddling
- Confidence
- verified, proof two
- Finding
- cmath/solids#box-and-plane
Finding: Box and plane in cmath: boxes, cones and triangles
0x6dc810 takes a box in ecx and a plane in edx (normal at +0, constant at +0xc). Per axis it takes the box vertex
with the lowest signed distance (the minimum for a non-negative normal component, else the maximum) and the one with the highest,
and forms n·v + d for both as floats. It returns 0 when their sign bits differ or either magnitude is below 0.0194444 (a float at
0x8101b8), 1 when the lowest distance is above that value, else 2.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.