acos()
The mathLib.acos() system function returns the arc cosine (inverse cosine) of a number, in radians.
Syntax
mathLib.acos(numericVariable FLOAT in)
returns (result FLOAT)
- numericVariable
- Input can be any variable or expression that is assignment compatible with the FLOAT type (see "Assignment compatibility in EGL"). This value must be between 1 and -1.
- result
- The inverse cosine of numericVariable is returned as a FLOAT value, in radians, between 0 and pi.
Example
result = mathLib.acos(myVar);