summaryrefslogtreecommitdiff
path: root/test/test-maths.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-05-13 01:44:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-05-13 01:44:41 +0100
commit922f31745c100779ffacde6a677210a890eb1a1f (patch)
tree71c98bb4c16695cd182a23f18b730abebd5c8885 /test/test-maths.cpp
parentRefactored linesIntersectAt (diff)
downloadilt-922f31745c100779ffacde6a677210a890eb1a1f.tar.bz2
ilt-922f31745c100779ffacde6a677210a890eb1a1f.tar.xz
ilt-922f31745c100779ffacde6a677210a890eb1a1f.zip
Removed flawed, two direction version find_arc_centre
Diffstat (limited to 'test/test-maths.cpp')
-rw-r--r--test/test-maths.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/test-maths.cpp b/test/test-maths.cpp
index c181686..5ee815d 100644
--- a/test/test-maths.cpp
+++ b/test/test-maths.cpp
@@ -151,24 +151,6 @@ BOOST_DATA_TEST_CASE(TestCreateArc,
BOOST_CHECK_CLOSE(arc.second, expAngles.second, 1.F);
}
-using FindArcCentreData = std::tuple<glm::vec2, float, glm::vec2, float, glm::vec2, bool>;
-
-BOOST_DATA_TEST_CASE(TestFindArcCentre,
- boost::unit_test::data::make<FindArcCentreData>({
- {{2, 2}, pi, {3, 3}, half_pi, {3, 2}, true},
- {{2, 2}, pi, {1, 3}, -half_pi, {1, 2}, false},
- {{-1100, -1000}, pi, {-900, -800}, half_pi, {-900, -1000}, true},
- {{1100, 1000}, 0, {1050, 900}, pi + 0.92F, {973, 1000}, true},
- {{1050, 900}, 0.92F, {1000, 800}, pi, {1127, 800}, false},
- }),
- startPoint, startEntryAngle, endPoint, endEntryAngle, expCentre, leftRight)
-{
- const auto centre = find_arc_centre(startPoint, startEntryAngle, endPoint, endEntryAngle);
- BOOST_CHECK_CLOSE(expCentre.x, centre.first.x, 1);
- BOOST_CHECK_CLOSE(expCentre.y, centre.first.y, 1);
- BOOST_CHECK_EQUAL(leftRight, centre.second);
-}
-
BOOST_AUTO_TEST_CASE(TestFindArcsRadius)
{
BOOST_CHECK_CLOSE(