MultiplyMatrix3
function · cmath · primitive
- Address
0x7bdfc0· 247 bytes, up to0x7be0b6- Signature
NTempest::C33Matrix * __fastcall (NTempest::C33Matrix *out, const NTempest::C33Matrix *a, const NTempest::C33Matrix *b)- Meaning
- Stores the product of two 3×3 matrices
- Confidence
- verified, proof two
- Finding
- cmath/matrices#three-by-three-matrices
- Test
cmath::multiply_matrix3_difftest
Finding: Three by three matrices in cmath: matrices
0x7bdfc0 (ecx out, edx a, b on the stack) stores the product a·b, out[3i + j] row i of a
by column j of b. 0x7be0e0 leaves the determinant by the rule of Sarrus in st0 at 53 bits. 0x7be1e0 stores the
transposed cofactor matrix. 0x7be2a0(m, out, s) stores RN24(1/s) times each of its entries; nothing tests s. 0x7be6d0 (ecx m, v
a pointer to three floats on the stack, ret 4) multiplies the entries of row r by v[r] in place; 0x7be670 does so with three
floats by value on the stack (ret 0xc).
The derivation is in the doc.
Callers 11
- BuildDecalTexCoords gxumath
- DrawBlobShadow lighting
- RotateMatrix3 cmath
- RotateMatrix3ByQuaternion cmath
- RotateMatrix3Z cmath
- BuildEulerBasis0 cmath
- BuildEulerBasis1 cmath
- BuildEulerBasis2 cmath
- BuildEulerBasis3 cmath
- BuildEulerBasis4 cmath
- BuildYawPitchRollBasis cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.