benilla-re systems structs docs

ProjectWorldPointToFrame

function · ui · primitive

Address
0x483ee0 · 476 bytes, up to 0x4840bb
Meaning
Projects a world point to the frame's space and answers whether it lies inside the frame
Confidence
verified, proof one
Finding
ui/worldframe#projecting-a-world-point
Test
ui::geo_483ee0

Finding: Projecting a world point in ui: the world frame as a widget

A world point is projected to the frame's own space by subtracting the camera position, transforming by the frame's cached matrix, dropping a point whose clip depth is below the camera's near distance, dividing by w and mapping to 0..1. The result is scaled by the frame's viewport width and height in layout units, less the frame's left and bottom when they are nonzero. It answers whether the point is inside the frame, edges included, and writes the point unless the depth test failed.

The derivation is in the doc.

Callers 3

Callees 2

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