SHIP:Sail:acos

From Serious Documentation
Revision as of 14:03, 4 October 2016 by CarltonHeyer (talk | contribs)
Jump to: navigation, search
Function Returns Introduced Description
acos Float v5.1.0 Returns the radians angle of a value that is in the range of -1 to +1Badge SHIPv5.gif

See Also:

Prototype

Float acos(Float value);

Parameters/Return Value

Parameter Data Type Description
value Float the value, from range -1 to +1, to take the arccos of
Return Float acos(value)

Detailed Description

The acos() function returns the arccos of the supplied value within the range of -1 to +1. If you want to return an angle in degrees you can use toDegrees(acos(value))

Examples

Example Result Notes
toDegrees(acos(1/2));
90
toDegrees(acos}}(sqrt(2)/2));
45
toDegrees(acos}}(sqrt(3)/2));
30
toDegrees(acos(2));
nan

Categories: Trigonometric Functions