Cos - Math
Member of: Math Script
Calculates the cosine of the value (in degrees) it is given.
SyntaxEdit
float Function cos(float afValue) native global
ParametersEdit
- afValue: The value to get the cosine of, in degrees.
Return ValueEdit
The cosine of the passed-in value.
ExamplesEdit
float x = cos(180) ; x == -1
float y = cos(90) ; y == 0