Add a function to convert degree to radian.

This commit is contained in:
Godzil
2020-02-14 23:29:09 +00:00
parent dee4b9ae91
commit 1f4b14c896
2 changed files with 9 additions and 0 deletions

View File

@@ -22,3 +22,8 @@ bool double_equal(double a, double b)
{
return fabs(a - b) < current_precision;
}
double deg_to_rad(double deg)
{
return deg * M_PI / 180.;
}