benilla-re systems structs docs

MinimapClipBlipToTile

function · ui · primitive

Address
0x4eaf00 · 319 bytes, up to 0x4eb03e
Meaning
Computes four edge values of a bounding box clamp from a base and a width
Confidence
inferred
Finding
ui/minimap#two-small-helpers
Test
ui::glue_4ea_4eaf00_bbox_edges

Finding: Two small helpers in ui: Minimap, the widget

0x4ef370 stores its four float arguments in order in a 16-byte record and returns it. 0x4ead90(out, i, a, b, c, d) takes the pair of floats t0 and t1 of record i of a table of 24-byte records and writes out[0] = 2·(a − t1), out[1] = 2·(b − t0), out[2] = 2·(c − t1) and out[3] = 2·(d − t0). The rounding is uneven: outputs 0 and 3 are doubled from a difference rounded to float, outputs 1 and 2 from one held in a register.

The derivation is in the doc.

Callers 1

Callees 1

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