diff --git a/inc/hgl/math/MathConst.h b/inc/hgl/math/MathConst.h index c6b1a45..600cfd9 100644 --- a/inc/hgl/math/MathConst.h +++ b/inc/hgl/math/MathConst.h @@ -82,19 +82,17 @@ namespace hgl /** * 角度转弧度 */ - template - inline constexpr T deg2rad(const T deg) + inline constexpr float deg2rad(const float deg) { - return T(deg*(HGL_PI/180.0f)); + return deg*(HGL_PI/180.0f); } /** * 弧度转角度 */ - template - inline constexpr T rad2deg(const T rad) + inline constexpr double rad2deg(const float rad) { - return T(rad*(180.0f/HGL_PI)); + return rad*(180.0f/HGL_PI); } /**