benilla-re systems structs docs

Determinant4

function · cmath · primitive

Address
0x7bcf90 · 201 bytes, up to 0x7bd058
Signature
float __thiscall (NTempest::C44Matrix *this)
Meaning
Returns the determinant of a 4x4 matrix by cofactors
Confidence
inferred
Finding
models/scene#segment-collision
Test
cmath::det4

Finding: Segment collision in models: the scene

0x7099e0(p0, p1, &f) finds the nearest collision triangle of the scene's hit-test instances on the segment within the fraction f, writes the hit's fraction to f and returns the instance's user value +0x41c, else 0. A segment or f under 1e-5 returns 0. Each listed, loaded instance is first a sphere: its current sequence's bounds, or the model's when that radius is 0, through the base matrix; the sphere must meet the line with its near point before the segment end and its far point not behind the start. Candidates sorted by near then far distance are tested while their near distance is under the best hit, and only mode 3 instances test triangles. Every call empties the hit list.

The derivation is in the doc.

Callers 6

Callees 1

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