Tag Archives: angle

How to convert Degrees to Radians and Back in C#

This is quite simple, but may be useful for somebody…

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

 public double RadToDeg(double angle)
 {
     return angle / (Math.PI / 180);
 }
Advertisements

Leave a comment

Filed under Uncategorized