summaryrefslogtreecommitdiffstats
path: root/include/Vector.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-21 16:26:25 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-06-21 16:26:25 +0200
commitf5aa7827af55342a1ec714d366944b3e3f3129b2 (patch)
tree4f4885d2ae0f46004a22e7d4dc34f80c11ecee0c /include/Vector.hpp
parent2017-06-20 (diff)
downloadAltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar.gz
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar.bz2
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar.lz
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar.xz
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.tar.zst
AltCraft-f5aa7827af55342a1ec714d366944b3e3f3129b2.zip
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);
}