File: Core\CSharp\System\Windows\Input\AngleUtil.cs
Project: wpf\src\PresentationCore.csproj (PresentationCore)
using System;
 
namespace System.Windows.Input 
{
    internal static class AngleUtil
    {
        /// <summary>
        ///     Method to convert from degrees to radians
        /// </summary>
        public static double DegreesToRadians(double degrees)
        {
            return degrees * Math.PI / 180.0;
        }
 
        /// <summary>
        ///     Method to convert from radians to degrees
        /// </summary>
        public static double RadiansToDegrees(double radians)
        {
            return radians * 180.0 / Math.PI;
        }
    }
}