Cos - Math
Revision as of 19:16, 4 March 2010 by imported>Jlundin (→Examples)
Member of: Math Script
Calculates the cosine of the value (in degrees) it is given.
Syntax
float Function cos(float afValue) native global
Parameters
- afValue: The value to get the cosine of, in degrees.
Return Value
The cosine of the passed-in value.
Examples
float x = cos(180) ; x == -1
float y = cos(90) ; y == 0