MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / ScreenToWorld

Function ScreenToWorld

src/game/server/NavUI/NavUI.cpp:796–828  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------------- Purpose: Given a field of view and mouse/screen positions as well as the current render origin and angles, returns a unit vector through the mouse position that can be used to trace into the world under the mouse click pixel. Input : mousex - mousey - fov - vecRenderOrigin - vecRenderAngles - O

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetNavUIEditVectorsFunction · 0.70

Calls 5

surfaceFunction · 0.85
AngleVectorsFunction · 0.85
ScaleFOVByWidthRatioFunction · 0.70
VectorNormalizeFunction · 0.50
GetScreenSizeMethod · 0.45

Tested by

no test coverage detected