arcsin

Returns the inverse sine of x.

Syntax:

arcsin(x);


Argument Description
x The angle (in radians) to return the inverse sine of.


Returns: Real


Description

Returns the inverse sine of x, in that if sin(x)=n, arcsin(n)=x, and the resulting number will be between -pi/2 and pi/2.

NOTE: This will only accept a value between -1 and 1 (anything else will throw an error).


Example:

val = arcsin( 0 );

This will set val to 0.


Back: Real Number Functions
Next: arctan
© Copyright YoYo Games Ltd. 2018 All Rights Reserved