diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-28 23:29:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-28 23:29:11 +0000 |
commit | dcc6947e0e9e2f121253609a8627a461aa2c15a7 (patch) | |
tree | 571e8b5981758c138c0a7979a9d01b2085bce17e | |
parent | Move utility to lib (diff) | |
download | ilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.tar.bz2 ilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.tar.xz ilt-dcc6947e0e9e2f121253609a8627a461aa2c15a7.zip |
Global definition of quarter_pi
-rw-r--r-- | lib/maths.h | 1 | ||||
-rw-r--r-- | test/test-maths.cpp | 1 |
2 files changed, 1 insertions, 1 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>()}; diff --git a/test/test-maths.cpp b/test/test-maths.cpp index 6151c39..a2e1953 100644 --- a/test/test-maths.cpp +++ b/test/test-maths.cpp @@ -7,7 +7,6 @@ #include <glm/glm.hpp> #include <maths.h> #include <tuple> -constexpr auto quarter_pi = pi / 4.F; using vecter_to_angle = std::tuple<glm::vec3, float>; BOOST_DATA_TEST_CASE(test_vector_yaw, |