summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/maths.h1
-rw-r--r--test/test-maths.cpp1
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,