benilla-re systems structs docs

s_mapInvVerticalSpan

global · ui

Address
0x806524 · 4 bytes, up to 0x806527
Type
const float
Meaning
Holds 1/41.75, the divisor that turns the vertical world span of a map into 0 to 1
Confidence
verified, proof two
Finding
ui/geometry#the-rectangle-of-a-continent

Finding: The rectangle of a continent in ui: map geometry

The four edge floats of a record come from the WorldMapContinent row with the same map id. With s the row's scale at +0x20, the offsets xo = 31.3125 − 32·s + f6 and yo = 20.875 − 32·s + f7 from the floats at +0x18 and +0x1c, and the integers f2 to f5 at +0x08 to +0x14, the edges are (f2·s + xo) / 62.625 and ((f3 + 1)·s + xo) / 62.625 along the horizontal axis, and (f4·s + yo) / 41.75 and ((f5 + 1)·s + yo) / 41.75 along the vertical one. A map id with no row leaves the four floats as the record held them.

The derivation is in the doc.