ArcCosine (Expression Function Reference)
 
 
 

The Function Trigonometry ArcCosine command in the expression editor inserts the token acos( at the insertion point in the editing pane. This token evaluates the arccosine function (the inverse of cosine) of an expression. Enter an expression after the opening bracket ( then enter a closing bracket ).

Note that the input argument of the arccosine function should be between -1 and 1. Outside of this range, the arccosine is undefined and the acos token returns 0. The output of the acos token is in degrees.

Example

acos(min(1, max(-1, sphere.kine.local.posy)))

Returns the arccosine of the local Y translation of sphere if it is between -1 and 1. If it is higher, the min function means that it returns acos(1) = 180. If it is lower, the max function means that it returns acos(-1) = 0.