benilla-re systems structs docs

IntersectRayTriangleInline

function · cmath · unreached

Address
0x7c27d0 · 530 bytes, up to 0x7c29e1
Signature
uint8_t __fastcall (const NTempest::C3Ray *ray, const NTempest::C3Vector *triangle, float *outT, float *outUV, float slack)
Meaning
Intersects a ray with a triangle of three stored vertices, both faces, with a slack
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

Calls and jumps by a bare address, from tables/calls.tsv.