NTempest::C4Quaternion
struct · cmath · 16 bytes
- Meaning
- Holds a quaternion: x, y and z, then the scalar w
- Confidence
- verified, proof one
- Name from
- a later build's public symbols
- Finding
- cmath/types#quaternions
Finding: Quaternions in cmath: value types
NTempest::C4Quaternion is four floats: the vector part x, y, z, then the scalar w. 0x7c0190
forms x = (m21 − m12)·k, the formula for a matrix acting on column vectors; its one caller,
0x7c0120, transposes the stored NTempest::C33Matrix first, so the pair gives
x = (m12 − m21)·k of the row-vector matrix, and y and z alike.
The derivation is in the doc.
Fields 4
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | float | m_x | Holds x, the first component of the vector part | verified, proof one | cmath/types#quaternions |
0x0004 | 4 | float | m_y | Holds y | verified, proof one | cmath/types#quaternions |
0x0008 | 4 | float | m_z | Holds z | verified, proof one | cmath/types#quaternions |
0x000c | 4 | float | m_w | Holds w, the scalar part: the cosine of half the rotation angle | verified, proof one | cmath/types#quaternions |