sin

Returns the sine of val (val in radians).

Syntax:

sin(val);


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


Returns: Real


Description

In a right angled triangle sin(val) = Opposite / Hypotenuse where val is one of the three angles.


Example:

val = sin( pi/2 );

This will set val to 1.


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