math.cos
From GMod Wiki
Revision as of 02:32, 12 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
math.cos( Number ) Where is this used? |
Description: | |
Returns the cosine of a number (in radians). | |
Returns: | Number number |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.cos]Math.cos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the cosine of 60 degrees (returned in radians). |
---|---|
Used on | |
Code | local angle = math.cos(60) |
Output | The variable angle will be set to -0.95241298... |