Cos - Math

From Creation Kit
Jump to: navigation, search

Member of: Math Script

Calculates the cosine of the value (in degrees) it is given.


float Function cos(float afValue) native global


  • afValue: The value to get the cosine of, in degrees.

Return Value

The cosine of the passed-in value.


float x = cos(180) ; x == -1
float y = cos(90) ; y == 0

See Also