ScaleMatrix3Rows
function · cmath · primitive
- Address
0x7be6d0· 82 bytes, up to0x7be721- Signature
void __thiscall (NTempest::C33Matrix *this, const NTempest::C3Vector *v)- Meaning
- Multiplies the rows of a 3×3 matrix by the three floats at a pointer
- Confidence
- verified, proof two
- Finding
- cmath/matrices#three-by-three-matrices
- Test
cmath::mat3_scale_rows
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 4
- DrawBlobShadow lighting
- BuildScaleMatrix34 unassigned
- BuildScaleMatrix4 cmath
- DivideMatrix3Rows cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.