benilla-re systems structs docs

s_mapCoordinateSpan

global · collision

Address
0x80c738 · 4 bytes, up to 0x80c73b
Type
float
Meaning
Holds 34131.332 (0x47055355), the bound on 17066.666 minus a coordinate
Confidence
verified, proof one
Finding
collision/mover#position-validity

Finding: Position validity in collision: mover

0x616bf0 returns 1 when x, y and z at +0x10 are finite, 17066.666 − y (53-bit) lies in [2.0, 34131.332) and fl(17066.666 − x) lies in the same range; else 0. For float coordinates this is −17064.666 < x, y ≤ 17064.666; z is tested only for finiteness. The constants are 17066.666015625 (0x46855555, 32 × 533.33333), 2.0 and 34131.33203125 (0x47055355, 0x80c738). No NaN reaches the compares.

The derivation is in the doc.