summaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
Diffstat (limited to 'utility')
-rw-r--r--utility/maths.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utility/maths.h b/utility/maths.h
index 996708f..47b95a3 100644
--- a/utility/maths.h
+++ b/utility/maths.h
@@ -33,6 +33,12 @@ float vector_pitch(const glm::vec3 & diff);
float round_frac(const float & v, const float & frac);
+constexpr inline glm::vec2
+operator!(const glm::vec3 & v)
+{
+ return {v.x, v.z};
+}
+
constexpr inline glm::vec3
operator!(const glm::vec2 & v)
{