Check out example codes for "degree to radians c#". It will help you in understanding the concepts better.

Code Example 1

public double ConvertToDegree(double rad)
    {
        return (180 / Math.PI) * rad;
    }

Code Example 2

public double ConvertToRadians(double angle)
{
    return (Math.PI / 180) * angle;
}

Learn ReactJs, React Native from akashmittal.com