math.Deg2Rad
From GMod Wiki
| Function | |
| Syntax |
math.Deg2Rad( Number x ) Where is this used? |
| Description: | |
| Converts x from degrees to radians. | |
| Returns: | Number |
| Part of Library: | Math |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.Deg2Rad]Math.Deg2Rad [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This example will print PI. |
|---|---|
| Used on | |
| Code | print(math.Deg2Rad(180)) |
| Output | 3.141592 |