Asin
asin
returns the arc sine of a value. The result is expressed in degrees, radians, or grades, depending on adxmda. The type of the result is Double.
asin
returns a negative value if x
is negative (you have to add 360 degrees to get a negative angle value).
Syntax
asin(x)
Example
# This function returns the angle of the shot if we consider that after a given distance an arrow has reached a given height.
Func GET_ANGLE(DISTANCE_VALUE,HEIGHT)
Value Double DISTANCE_VALUE, HEIGHT
End asin(HEIGH/DISTANCE)
See also
sin, cos, tan, acos, atan, atan2.