how to convert degrees to radians in c# code example
Example 1: degree to radians c#
public double ConvertToDegree(double rad)
{
return (180 / Math.PI) * rad;
}
Example 2: radians to degree c#
public double ConvertToRadians(double angle)
{
return (System.Math.PI / 180) * angle;
}