acosv(x)
Arc cosine function - the opposite of the
cosv
function,
returns an angle for a given cosine value.
Parameters:
x - cosine value (-1 ... 1 ).Returns:
Angle (0 ... 360).
Speed:
FastRemarks:
-
For maintaining compatibility both to standard-C and to the old C-Script language, the acos function is overloaded under lite-C. When called with a var or int argument, it behaves like acosv(), using degrees; when called with a float or double argument, it behaves like the standard C/C++ acos() function, using radians. For enforcing the use of radians regardless of the argument type, use the (float) cast operator.
-
For learning about trigonometric functions see Trigonometry.
Example:
x = acosv(0); // x is 90
x = acosv(0.707); // x is 45
x = cosv(45); // x is 0.707
See also:
Trigonometry, sinv, cosv, tanv, asinv, acosv, atanv
► latest
version online