benilla-re systems structs docs

Matrix4FromFloats

function · cmath · orchestration

Address
0x7bdf50 · 104 bytes, up to 0x7bdfb7
Signature
NTempest::C44Matrix * __thiscall (NTempest::C44Matrix *this, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
Meaning
Stores sixteen floats from the stack into a 4×4 matrix
Confidence
verified, proof two
Finding
cmath/matrices#sum-scalar-and-product
Test
animation::m2_animate_difftest, animation::m2_bone_propagate_difftest, gx::lightningrender_strip_difftest

Finding: Sum, scalar and product in cmath: matrices

0x7bc290 (ecx out, edx a, b on the stack, ret 4) stores a[i] + b[i] for the 16 entries; 0x7bc8e0 (ecx out, edx m, s on the stack) stores s·m[i]; 0x7bc1a0 (ecx a, edx b) returns in al whether any pair differs under the float compare, so −0 equals 0 and NaN differs. 0x7bc6a0 (ecx out, edx a, b on the stack) stores the product a·b, out[4i + j] row i of a by column j of b, and returns out; 0x7bc8c0 gives entry 0 and 0x7bce30 (ecx A, B on the stack) sets A = A·B in place and returns A. 0x7bdf50 stores sixteen floats from the stack.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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