Mega Code Archive

 
Categories / C# / Development Class
 

Degrees To Radians and Radians To Degrees

using System; using System.Collections.Generic; using System.Text; public static class Utility {     public static Double DegreesToRadians(Double degrees)     {         return degrees * Math.PI / 180d;     }     public static Double RadiansToDegrees(Double radians)     {         return radians * 180d / Math.PI;     } }