MathLib.acos function

MathLib.aCos returns the arc cosine (inverse cosine) of a number.

Package

eglx.lang

Syntax
static function acos(value float in) returns(float);
value
Takes a numeric value between 1 and -1, inclusive.

The returned value is between 1 and pi.

Example use

Here is example code:

result = mathLib.acos(myVar);
Comments

In the case of Java™, EGL uses methods in the Java StrictMath class that are equivalent to the EGL functions. This usage ensures that the runtime behavior is the same for every Java Virtual Machine.

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.