IntersectRayIndexedTriangleFront
function · cmath · unreached
- Address
0x7c30a0· 577 bytes, up to0x7c32e0- Signature
uint8_t __fastcall (const NTempest::C3Ray *ray, const NTempest::C3Vector *vertices, const uint16_t *indices, float *outT, float *outUV)- Meaning
- Intersects a ray with one face of a triangle by three 16-bit vertex indices, dividing last
- Confidence
- verified, proof two
- Finding
- cmath/geometry#other-triangle-rays
Finding: Other triangle rays in cmath: intersections
0x7c27d0(outT, outUV, slack) is 0x7c29f0 for a triangle of three stored vertices (nine floats at edx) with the
same two-sided band of ±1e-6; it takes the reciprocal of det before the bounds. 0x7c2e90(outT, outUV) takes the same
triangle and one face: it misses for det < 1e-6, tests the numerators u·det and v·det (u ≥ 0, v ≥ 0, u + v ≤ det) before it
divides, and divides once, only for an output. 0x7c30a0(indices, outT, outUV) is 0x7c2e90 with the triangle given by
three 16-bit indices into the vertex array in edx. None has a caller.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- SetVector3 spline
Calls and jumps by a bare address, from tables/calls.tsv.