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

Function ScreenToWorld

src/game/client/c_vguiscreen.cpp:293–323  ·  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 - Output : vecPickingRay --------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

ScreenWidthFunction · 0.85
ScreenHeightFunction · 0.85
AngleVectorsFunction · 0.85
ScaleFOVByWidthRatioFunction · 0.70
VectorNormalizeFunction · 0.50

Tested by

no test coverage detected