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