Vector/ToScreen

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added note)
m (Added opposite function)
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Translates the vectors position into 2D user screen coordinates.
+
|Description=Translates the vectors position into 2D user screen coordinates. Opposite function is {{LibraryFunction|gui|ScreenToVector}}.
  
 
{{Note|Should be called from a 3D rendering environment or after {{LibraryFunction|cam|Start3D}} or it may not work correctly.}}
 
{{Note|Should be called from a 3D rendering environment or after {{LibraryFunction|cam|Start3D}} or it may not work correctly.}}

Revision as of 04:27, 22 March 2017

 Vector:ToScreen( )

Description

Translates the vectors position into 2D user screen coordinates. Opposite function is gui.ScreenToVector.

NOTE

Should be called from a 3D rendering environment or after cam.Start3D or it may not work correctly.

Returns

Personal tools
Navigation