summaryrefslogtreecommitdiff
path: root/test/test-maths.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 13:35:52 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 13:35:52 +0000
commit95e45557ba76132d7b7e8326bccd08a50f81eb0e (patch)
tree12e185af5ba4ce9a7ec04ce27c2e85ab286ff1ea /test/test-maths.cpp
parentDon't copy shared_ptrs (diff)
downloadilt-95e45557ba76132d7b7e8326bccd08a50f81eb0e.tar.bz2
ilt-95e45557ba76132d7b7e8326bccd08a50f81eb0e.tar.xz
ilt-95e45557ba76132d7b7e8326bccd08a50f81eb0e.zip
Rename flat_angle to vector_yaw
Diffstat (limited to 'test/test-maths.cpp')
-rw-r--r--test/test-maths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-maths.cpp b/test/test-maths.cpp
index aed51d0..ba1bc7b 100644
--- a/test/test-maths.cpp
+++ b/test/test-maths.cpp
@@ -8,13 +8,13 @@
constexpr auto quarter_pi = pi / 4.F;
using vecter_to_angle = std::tuple<glm::vec3, float>;
-BOOST_DATA_TEST_CASE(test_flat_angle,
+BOOST_DATA_TEST_CASE(test_vector_yaw,
boost::unit_test::data::make<vecter_to_angle>(
{{north, 0}, {south, pi}, {west, half_pi}, {east, -half_pi}, {north + east, -quarter_pi},
{south + east, quarter_pi * -3}, {north + west, quarter_pi}, {south + west, quarter_pi * 3}}),
v, a)
{
- BOOST_CHECK_CLOSE(flat_angle(v), a, 1.F);
+ BOOST_CHECK_CLOSE(vector_yaw(v), a, 1.F);
}
using normalize_angle = std::tuple<float, float>;