diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 4928c9bf2d..02688e35e0 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -32,6 +32,7 @@ #pragma once #include +#include namespace Math { @@ -90,6 +91,7 @@ public: { x-=other.x; y-=other.y; } + template::value>::type> Vec2 operator -() const { return MakeVec(-x,-y); @@ -220,6 +222,7 @@ public: { x-=other.x; y-=other.y; z-=other.z; } + template::value>::type> Vec3 operator -() const { return MakeVec(-x,-y,-z); @@ -390,6 +393,7 @@ public: { x-=other.x; y-=other.y; z-=other.z; w-=other.w; } + template::value>::type> Vec4 operator -() const { return MakeVec(-x,-y,-z,-w);