Cone
struct · cmath · 36 bytes
- Meaning
- Holds a cone: apex, unit axis, cap length and the cosine of its half-angle; the size is the extent read
- Confidence
- inferred
- Finding
- cmath/types#cones-and-oriented-boxes
Finding: Cones and oriented boxes in cmath: value types
Cone is the apex at +0, the unit axis at +0x10, the cap length at +0x1c and the cosine of
the half-angle at +0x20; nothing reads +0xc. OrientedBox is the centre at +0, the
half-extents at +0xc and three unit axes at +0x18, +0x24 and +0x30. Both are taken only by
unreached routines, no allocation or constructor gives their sizes, and the sizes 36 and 60 are the
extents the routines read. No public names for them are known, so their names are descriptive.
The derivation is in the doc.
Fields 4
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 12 | NTempest::C3Vector | m_apex | Holds the apex | verified, proof one | cmath/types#cones-and-oriented-boxes |
0x0010 | 12 | NTempest::C3Vector | m_axis | Holds the unit axis | verified, proof one | cmath/types#cones-and-oriented-boxes |
0x001c | 4 | float | m_height | Holds the cap length along the axis; 0 for no cap | verified, proof one | cmath/types#cones-and-oriented-boxes |
0x0020 | 4 | float | m_cosHalfAngle | Holds the cosine of the half-angle | verified, proof one | cmath/types#cones-and-oriented-boxes |