benilla-re systems structs docs

AdjugateMatrix4

function · cmath · primitive

Address
0x7bd390 · 815 bytes, up to 0x7bd6be
Signature
NTempest::C44Matrix * __thiscall (NTempest::C44Matrix *this, NTempest::C44Matrix *out)
Meaning
Stores the adjugate of a 4×4 matrix from its signed 3×3 minors
Confidence
verified, proof two
Finding
cmath/matrices#determinants-and-inverses
Test
cmath::adj4t

Finding: Determinants and inverses in cmath: matrices

0x7bc040 (nine floats on the stack, ret 0x24) leaves the 3×3 determinant in st0 at 53 bits, m1·m5·m6 + m2·m3·m7 + m0·m4·m8 − m2·m4·m6 − m1·m3·m8 − m0·m5·m7. 0x7bcf90 expands the 4×4 along row 0, m0·D0 − m1·D1 + m2·D2 − m3·D3 with Dj that determinant of the minor without row 0 and column j, each partial sum stored as a float. 0x7bd390 stores the adjugate: entry 4i + j is (−1)^(i+j) times the minor without row j and column i. 0x7bd6c0(m, out, s) stores RN24(1/s) times each adjugate entry; nothing tests s for 0.

The derivation is in the doc.

Callers 1

Callees 1

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