summaryrefslogtreecommitdiff
path: root/src/common/vector_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/vector_math.h')
-rw-r--r--src/common/vector_math.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h
index c7a461a1e..6e2a5ad60 100644
--- a/src/common/vector_math.h
+++ b/src/common/vector_math.h
@@ -31,7 +31,6 @@
31#pragma once 31#pragma once
32 32
33#include <cmath> 33#include <cmath>
34#include <type_traits>
35 34
36namespace Math { 35namespace Math {
37 36
@@ -90,7 +89,7 @@ public:
90 x -= other.x; 89 x -= other.x;
91 y -= other.y; 90 y -= other.y;
92 } 91 }
93 template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type> 92
94 Vec2<decltype(-T{})> operator-() const { 93 Vec2<decltype(-T{})> operator-() const {
95 return MakeVec(-x, -y); 94 return MakeVec(-x, -y);
96 } 95 }
@@ -247,7 +246,7 @@ public:
247 y -= other.y; 246 y -= other.y;
248 z -= other.z; 247 z -= other.z;
249 } 248 }
250 template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type> 249
251 Vec3<decltype(-T{})> operator-() const { 250 Vec3<decltype(-T{})> operator-() const {
252 return MakeVec(-x, -y, -z); 251 return MakeVec(-x, -y, -z);
253 } 252 }
@@ -462,7 +461,7 @@ public:
462 z -= other.z; 461 z -= other.z;
463 w -= other.w; 462 w -= other.w;
464 } 463 }
465 template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type> 464
466 Vec4<decltype(-T{})> operator-() const { 465 Vec4<decltype(-T{})> operator-() const {
467 return MakeVec(-x, -y, -z, -w); 466 return MakeVec(-x, -y, -z, -w);
468 } 467 }