summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-28 23:29:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-28 23:29:11 +0000
commitdcc6947e0e9e2f121253609a8627a461aa2c15a7 (patch)
tree571e8b5981758c138c0a7979a9d01b2085bce17e /lib
parentMove utility to lib (diff)
downloadilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.tar.bz2
ilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.tar.xz
ilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.zip
Global definition of quarter_pi
Diffstat (limited to 'lib')
-rw-r--r--lib/maths.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/maths.h b/lib/maths.h
index 89cb7cb..c072283 100644
--- a/lib/maths.h
+++ b/lib/maths.h
@@ -23,6 +23,7 @@ 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 quarter_pi {half_pi / 2};
constexpr auto pi {glm::pi<float>()};
constexpr auto two_pi {glm::two_pi<float>()};