Acos
acos
returns the arc cosine of a value. The result is expressed in degrees, radians, or grades, depending on adxmda. The type of the result is Double.
acos
returns a value in the (-180,180) range (in degrees). You must add 360 degrees to it if you do not want to get a negative angle value.
Syntax
acos(x)
Example
# This function returns the angle of the shot
# if we consider that after a given distance an arrow has reached a given ground distance
Func GET_ANGLE(DISTANCE_VALUE,GROUND_DISTANCE)
Value Double DISTANCE_VALUE, GROUND_DISTANCE
End asin(GROUND_DISTANCE/DISTANCE_VALUE)
See also
sin, cos, tan, asin, atan, atan2.