StoreAngleProperty
function · camera · primitive
- Address
0x7acc40· 87 bytes, up to0x7acc96- Signature
void __thiscall (CBaseManaged *this, const float *angle)- Meaning
- Stores the reduced angle when it changes and recomputes its cosine and sine; slot 3 of an angle
- Confidence
- verified, proof one
- Finding
- camera#angle-properties
- Test
camera::camera_angle_cossin
Finding: Angle properties in camera
Setting an angle stores it reduced by 0x7abbe0, then recomputes its cosine at +0x20 and its
sine at +0x24 of the property, every time. 0x7abbe0 returns x − 2π·trunc(x/2π) for
x ≥ 0 and x − 2π·(trunc(x/2π) − 1) for x < 0, computed at the client's 53-bit precision.
For |x| below 81.68141 the result lies in [0, 2π]: 2π maps to 2π, −2π to 0, and −0.0 stays
−0.0. The stored angle changes, and the property is marked changed, only when it differs from the
old value or is NaN.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- NormalizeAngle camera
Calls and jumps by a bare address, from tables/calls.tsv.