diff options
Diffstat (limited to '')
-rw-r--r-- | include/Vector.hpp (renamed from src/utility/Vector.hpp) | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/utility/Vector.hpp b/include/Vector.hpp index 9d6c1be..a2d5c6a 100644 --- a/src/utility/Vector.hpp +++ b/include/Vector.hpp @@ -1,10 +1,11 @@ #pragma once -#include <glm/vec3.hpp> #include <ostream> #include <cmath> #include <tuple> +#include <glm/vec3.hpp> + template<class T> class Vector3 { T x, y, z; @@ -101,14 +102,6 @@ public: } bool operator<(const Vector3 &rhs) const { - //return (x < rhs.x || y < rhs.y ||z z < rhs.z); - /*if (x < rhs.x) - return true; - else if (z < rhs.z) - return true; - else if (y < rhs.y) - return true; - return false;*/ return std::tie(x, y, z) < std::tie(rhs.x, rhs.y, rhs.z); } |