From 9ea070c2d7541adeaf810c1fe9c324fd0e4e09b3 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 6 Jan 2021 20:33:36 -0500 Subject: [PATCH] CVector2f: Remove unnecessary constexpr --- include/zeus/CVector2f.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zeus/CVector2f.hpp b/include/zeus/CVector2f.hpp index d8639cd..e66944c 100644 --- a/include/zeus/CVector2f.hpp +++ b/include/zeus/CVector2f.hpp @@ -155,7 +155,7 @@ public: [[nodiscard]] constexpr float magSquared() const { return mSimd.dot2(mSimd); } - [[nodiscard]] constexpr float magnitude() const { return std::sqrt(magSquared()); } + [[nodiscard]] float magnitude() const { return std::sqrt(magSquared()); } constexpr void zeroOut() { mSimd = 0.f; } @@ -173,9 +173,9 @@ public: [[nodiscard]] static CVector2f slerp(const CVector2f& a, const CVector2f& b, float t); - [[nodiscard]] constexpr bool isNormalized() const { return std::fabs(1.f - magSquared()) < 0.01f; } + [[nodiscard]] bool isNormalized() const { return std::fabs(1.f - magSquared()) < 0.01f; } - [[nodiscard]] constexpr bool canBeNormalized() const { + [[nodiscard]] bool canBeNormalized() const { if (std::isinf(x()) || std::isinf(y())) return false; return std::fabs(x()) >= FLT_EPSILON || std::fabs(y()) >= FLT_EPSILON;