ScaleMatrix4Entries
function · cmath · primitive
- Address
0x7bc8e0· 204 bytes, up to0x7bc9ab- Signature
NTempest::C44Matrix * __fastcall (NTempest::C44Matrix *out, const NTempest::C44Matrix *m, float s)- Meaning
- Stores a scalar times each of the 16 entries of a 4×4 matrix
- Confidence
- verified, proof two
- Finding
- cmath/matrices#sum-scalar-and-product
- Test
cmath::mat4_mul_scalar
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 3
- CM2Model::SetBaseTransformConformed models
- ScaleMatrix4Wrapper cmath
- InvertMatrix4WithDeterminant cmath
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.