IsPointInCone
function · cmath · unreached
- Address
0x7c32f0· 147 bytes, up to0x7c3382- Signature
uint8_t __fastcall (const NTempest::C3Vector *point, const Cone *cone)- Meaning
- Returns 1 when a point lies in a double cone from an apex along an axis, within a cap
- Confidence
- verified, proof two
- Finding
- cmath/solids#point-in-a-cone
Finding: Point in a cone in cmath: boxes, cones and triangles
0x7c32f0 tests the point in ecx against the cone in edx (same layout as the ray and cone). With d = point − apex and p = d·U it
returns 1 when p² ≥ k²·|d|² and, for a non-zero cap H, p ≤ H. The sign of p is not tested, so the cone is a double cone and a point
behind the apex inside the mirror cone passes.
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.