math.Deg2Rad

From GMod Wiki

Jump to: navigation, search
Function
Syntax math.Deg2Rad( Number x )
Where is this used?
Description:
Converts x from degrees to radians.
Returns: Number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.Deg2Rad]Math.Deg2Rad [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis example will print PI.
Used onNewerShared.png
Code
print(math.Deg2Rad(180))
Output3.141592
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox