Cos - Math
Revision as of 14:13, 8 October 2012 by imported>JustinOther (→Examples: Floatified afValue)
Member of: Math Script
Calculates the cosine of the value (in degrees) it is given.
Syntax[edit | edit source]
float Function cos(float afValue) native global
Parameters[edit | edit source]
- afValue: The value to get the cosine of, in degrees.
Return Value[edit | edit source]
The cosine of the passed-in value.
Examples[edit | edit source]
float x = math.cos(180.0) ; x == -1
float y = math.cos(90.0) ; y == 0