benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x000012NTempest::C3Vectorm_apexHolds the apexverified, proof onecmath/types#cones-and-oriented-boxes
0x001012NTempest::C3Vectorm_axisHolds the unit axisverified, proof onecmath/types#cones-and-oriented-boxes
0x001c4floatm_heightHolds the cap length along the axis; 0 for no capverified, proof onecmath/types#cones-and-oriented-boxes
0x00204floatm_cosHalfAngleHolds the cosine of the half-angleverified, proof onecmath/types#cones-and-oriented-boxes