s_zero
global · ui
- Address
0x7ffd74· 4 bytes, up to0x7ffd77- Type
const float- Meaning
- Holds 0.0, against which the layout tests sizes and edges
- Confidence
- verified, proof one
- Finding
- ui/anchors#edge-resolution-from-size
Finding: Edge resolution from size in ui: anchors and layout
When no point fixes an edge it is derived from its size d, the frame's width (slot 0x1c, +0x50)
or height (slot 0x20, +0x54) times the scale +0x58, rounded to a float. A far edge (right,
top) is near + d, else centre + d·0.5, else 2·centre − near; a near edge (left, bottom) is
the same with −d. The first two steps need their inputs to be finite (not +∞) and d nonzero;
the last is reached only when d is 0 and needs both the centre and the near edge finite. A centre
is (near + far)·0.5, else near + d·0.5, else far − d·0.5; the last two need d nonzero.
Otherwise the result is +∞.
The derivation is in the doc.