cos

Returns the cosine of val.

Syntax:

cos(val);


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


Returns: Real


Description

In a right angled triangle cos(val) = Adjacent / Hypotenuse where val is one of the three angles. This function will always return a number between 1 and -1.


Example:

val = cos( 0 );

This will set val to 1.


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