From dcc6947e0e9e2f121253609a8627a461aa2c15a7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 28 Feb 2021 23:29:11 +0000 Subject: Global definition of quarter_pi --- lib/maths.h | 1 + test/test-maths.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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()}; +constexpr auto quarter_pi {half_pi / 2}; constexpr auto pi {glm::pi()}; constexpr auto two_pi {glm::two_pi()}; 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 #include #include -constexpr auto quarter_pi = pi / 4.F; using vecter_to_angle = std::tuple; BOOST_DATA_TEST_CASE(test_vector_yaw, -- cgit v1.2.3