BuildFrustumPlanes
function · gxumath · unreached
- Address
0x5c4930· 820 bytes, up to0x5c4c63- Signature
void __fastcall (const float *m, float *planes)- Meaning
- Writes the six normalized clip-volume planes of a matrix from its columns
- Confidence
- verified, proof one
- Finding
- gxumath#frustum-planes-and-box
Finding: Frustum planes and box in gxumath
0x5c4930 (ecx a matrix, edx six planes of four floats) writes C0 − C3, −C0 − C3, C1 − C3, −C1 − C3, C2 − C3, −C2 − C3 for the matrix's columns, each a float, then scales each plane's four
floats by RN24(1/√(a² + b² + c²)). 0x5c54f0 (ecx a point, edx the planes, a margin on
the stack) returns 1 when py·ply + px·plx + pz·plz + plw − margin is at most 0 for all six, NaN
passing. 0x5c4c70 (ecx view, edx projection; minimum and maximum outputs on the stack, ret 8)
writes the componentwise bounds of the eight corners 0x5c43b0 gives.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- SetVector4 gxumath
- ScaleVector4 gxumath
- NegateVector4 gxumath
- SubtractVector4 gxumath
- CopyMatrixColumn2 gxumath
- CopyMatrixColumn3 gxumath
Calls and jumps by a bare address, from tables/calls.tsv.