Built-in functions: math_cos()
The function math_cos() calculates a cosine value.
Declaration
float math_cos( float aAngle )
Parameters
aAngle
The angle to calculate the cosine. Please note, the angle is expressed in degree not radians.
Discussion
The trigonometric function math_cos() calculates the cosine of the given angle aAngle. The function returns the cosine value lying in the range -1.0 .. +1.0. For example:
var float x = math_cos( 60.0 ); // x = 0.5