ProjectWorldPointToFrame
function · ui · primitive
- Address
0x483ee0· 476 bytes, up to0x4840bb- 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
- PlaceChatBubble ui
- CGUnit_C::GetNamePlateScreenPos objectlayer
- WORLDTEXTSTRING::Draw playername
Callees 2
- ScaleScreenDelta screencoord
- TransformVector4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.