summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 12:58:22 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 12:58:22 +0000
commit77ab194851c7cf2d96a00ba2dd7f068aa66c35ee (patch)
treefcf616c3017bf3a7f6a672d6bd5e429bcd6adf0f
parentNew .obj parser, packer, mesher (diff)
downloadilt-77ab194851c7cf2d96a00ba2dd7f068aa66c35ee.tar.bz2
ilt-77ab194851c7cf2d96a00ba2dd7f068aa66c35ee.tar.xz
ilt-77ab194851c7cf2d96a00ba2dd7f068aa66c35ee.zip
Add consts for other compass points
-rw-r--r--utility/maths.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utility/maths.h b/utility/maths.h
index 0b379d0..22688cb 100644
--- a/utility/maths.h
+++ b/utility/maths.h
@@ -9,6 +9,9 @@ using Arc = std::pair<float, float>;
constexpr const glm::vec3 up {0, 1, 0};
constexpr const glm::vec3 north {0, 0, 1};
+constexpr const glm::vec3 south {0, 0, -1};
+constexpr const glm::vec3 east {-1, 0, 0};
+constexpr const glm::vec3 west {1, 0, 0};
constexpr auto half_pi {glm::half_pi<float>()};
constexpr auto pi {glm::pi<float>()};
constexpr auto two_pi {glm::two_pi<float>()};