NTempest::C44Matrix
struct · cmath · 64 bytes
- Meaning
- Holds a 4×4 matrix of floats row by row for a row vector on the left, v·M; row 3 holds the translation
- Confidence
- verified, proof one
- Name from
- a later build's public symbols
- Finding
- cmath/types#matrices
Finding: Matrices in cmath: value types
NTempest::C44Matrix is 16 floats, row by row: entry (r, c) at float 4r + c. A point is a row vector on the
left, v·M, x' = x·m0 + y·m4 + z·m8 + m12, so row 3 holds the translation. NTempest::C33Matrix
is nine floats, entry (r, c) at 3r + c. NTempest::C34Matrix is a NTempest::C33Matrix followed by a translation row
at +0x24. Matrix2x2 is four floats, row by row; its one builder 0x7c42f0 writes the rotation
[[cos, sin], [−sin, cos]].
The derivation is in the doc.
Fields 4
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 16 | float[4] | m_row0 | Holds row 0, which x multiplies | verified, proof one | cmath/types#matrices |
0x0010 | 16 | float[4] | m_row1 | Holds row 1, which y multiplies | verified, proof one | cmath/types#matrices |
0x0020 | 16 | float[4] | m_row2 | Holds row 2, which z multiplies | verified, proof one | cmath/types#matrices |
0x0030 | 16 | float[4] | m_row3 | Holds row 3, which w multiplies: the translation in entries 0 to 2 | verified, proof one | cmath/types#matrices |
Globals of this type
0xc7cd30s_doodadTraceMatrix