Commits

Anonymous committed e03551f

no need to degrade to float early.

Comments (0)

Files changed (1)

neglect/cpplib/include/neglect/math.hpp

         template <typename T>
         T deg_to_rad(T degrees)
         {
-            return degrees * pi / 180.0f;
+            return degrees * pi / 180.0;
         }
 
         template <typename T>
         T rad_to_deg(T radians)
         {
-            return radians * 180.0f / pi;
+            return radians * 180.0 / pi;
         }
     }
 }