float Maths.Cos(float radians)
Calculates the cosine of the specified angle (in radians).
To convert an angle in degrees to radians, use Maths.DegreesToRadians.
Example:
float cosine = Maths.Cos(Maths.DegreesToRadians(360.0));
calculates the cosine of 360 degrees (which is 1.0) and places it into variable cosine.
See Also: Maths.ArcCos,
Maths.DegreesToRadians,
Maths.Sin, Maths.Tan
|