math.asin

From GMod Wiki

Jump to: navigation, search
Function
Syntax math.asin( Float number )
Where is this used?
Description:
Returns the arc sine of x (in radians).
Returns: Float
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.asin]Math.asin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionReturn the inverse sine of the given value.
Used onNewerShared.png
Code
print(math.asin(0))
//0
print(math.asin(1))
//1.5707963267949
Output0 and 1.5707963267949


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox