Converts a radians angle into a degrees angle.
public static class MathUtility { //------------------------------------------------------------------------------------- /// <summary> /// Converts a radians angle into a degrees angle. /// </summary> /// <param name="angle">Angle to convert.</param> /// <returns>Angle in degrees.</returns> //------------------------------------------------------------------------------------- public static float RadiansToDegrees(float angle) { return angle * (180.0f / (float) System.Math.PI); } }