Garry's Mod Wiki
Example
atan( 1 ) and atan2( 1, 1 ) are both math.pi / 4
atan2( -1, -1 ) equals to ( (-3) * math.pi ) / 4
Output: 0.7853981633974483
0.7853981633974483
-2.356194490192345
Example
Draws an icon in the center of the screen that rotates relative to the position of the cursor. Note: you might have to use Panel:LocalCursorPos if you want to draw this inside a panel.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...