math.tan
From GMod Wiki
Function | |
Syntax |
math.tan( Number ) Where is this used? |
Description: | |
Returns the tangent of a number (in radians). | |
Returns: | Number number |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.tan]Math.tan [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the tangent of 45 degrees (returned in radians). |
---|---|
Used on | |
Code | local angle = math.tan(45) |
Output | The variable angle will be set to 1.619775... |