math.atan

From GMod Wiki

Revision as of 14:44, 24 September 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax math.atan( Number x )
Where is this used?
Description:
Returns the arc tangent of x (in radians).
Returns: Number
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.atan]Math.atan [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionReturn the inverse tangent.
Used onNewerShared.png
Code
 c, s = math.cos(0.8), math.sin(0.8)
print( math.atan(s/c) )
//0.8
Output0.8


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox