Name Edit

acos - returns arccosine of scalars and vectors.

Synopsis Edit

vector1 acos(vector1 a);
vector2 acos(vector2 a);
vector3 acos(vector3 a);
vector4 acos(vector4 a);

Parameters Edit

Vector or scalar of which to determine the arccosine.

Description Edit

Returns the arccosine of a in the range [0,pi], expecting a to be in the range [-1,+1].

For vectors, the returned vector contains the arccosine of each element of the input vector.