aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/math_defs.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index d90eaae5..ba007115 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -1,10 +1,8 @@
#ifndef AL_MATH_DEFS_H
#define AL_MATH_DEFS_H
-#include <math.h>
-
-constexpr inline float Deg2Rad(float x) noexcept { return x * 1.74532925199432955e-02f/*pi/180*/; }
-constexpr inline float Rad2Deg(float x) noexcept { return x * 5.72957795130823229e+01f/*180/pi*/; }
+constexpr float Deg2Rad(float x) noexcept { return x * 1.74532925199432955e-02f/*pi/180*/; }
+constexpr float Rad2Deg(float x) noexcept { return x * 5.72957795130823229e+01f/*180/pi*/; }
namespace al {
@@ -13,14 +11,14 @@ struct MathDefs { };
template<>
struct MathDefs<float> {
- static constexpr inline float Pi() noexcept { return 3.14159265358979323846e+00f; }
- static constexpr inline float Tau() noexcept { return 6.28318530717958647692e+00f; }
+ static constexpr float Pi() noexcept { return 3.14159265358979323846e+00f; }
+ static constexpr float Tau() noexcept { return 6.28318530717958647692e+00f; }
};
template<>
struct MathDefs<double> {
- static constexpr inline double Pi() noexcept { return 3.14159265358979323846e+00; }
- static constexpr inline double Tau() noexcept { return 6.28318530717958647692e+00; }
+ static constexpr double Pi() noexcept { return 3.14159265358979323846e+00; }
+ static constexpr double Tau() noexcept { return 6.28318530717958647692e+00; }
};
} // namespace al