CGWorldFrame::OnFrameSizeChanged
function · ui · orchestration
- Address
0x483970· 410 bytes, up to0x483b09- Meaning
- Runs the base callback, stores the clamped rectangle and its 0 to 1 form for the projection
- Confidence
- verified, proof one
- Finding
- ui/worldframe#projecting-a-world-point
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 0
None by a direct call or jump.
Callees 4
- UnscaleScreenXY screencoord
- MultiplyByScreenScaleX screencoord
- MultiplyByScreenScaleY screencoord
- CSimpleFrame::OnFrameSizeChanged ui
Calls and jumps by a bare address, from tables/calls.tsv.