float Maths.DegreesToRadians(float degrees)
Converts the supplied angle in degrees, to the equivalent angle in radians.
Since the trigonometric functions such as Sin, Cos and Tan work in radians, this
function is handy if you know the angle you want in degrees.
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.Cos,
Maths.RadiansToDegrees,
Maths.Sin, Maths.Tan
|