PointInFrustumPlanes
function · gxumath · unreached
- Address
0x5c54f0· 104 bytes, up to0x5c5557- Signature
uint32_t __fastcall (const float *point, const float *planes, float margin)- Meaning
- Returns 1 when a point, less a margin, is on the inner side of all six planes
- 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 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.