Converts radians to degree. - CSharp System

CSharp examples for System:Math Geometry

Description

Converts radians to degree.

Demo Code



public class Main{
        /// <summary>
      /// Converts radians to degress.
      /// </summary>
      /// <param name="radians">Angle in radians.</param>
      /// <returns>The angle in degrees.</returns>
      public static double ToDegrees(double radians)
      {//from   w  ww  . j  av a2s  .  co m
         return radians * 57.29577951308232;;
      }
}

Related Tutorials