benilla-re systems structs docs

CombineEdge

function · ui · primitive

Address
0x767440 · 132 bytes, up to 0x7674c3
Meaning
Returns b+c, a+c·0.5 or 2a−b, or +inf, by which inputs are finite and c nonzero
Confidence
verified, proof one
Finding
ui/anchors#edge-resolution-from-size
Test
ui::layout_combine_edge

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.

Callers 4

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.