diff options
author | Ricardo Buring <ricardo.buring@gmail.com> | 2024-04-02 23:42:32 +0200 |
---|---|---|
committer | Ricardo Buring <ricardo.buring@gmail.com> | 2024-04-20 13:37:59 +0200 |
commit | 8a28f816d011d86a2f7cbbe6aaa97ac616f7596a (patch) | |
tree | ffb76c837bc33dc7c1b2d63d697e4c7e11f8fe34 /tests | |
parent | 4a0160241fd0c1e874e297f6b08676cf0761e5e8 (diff) | |
download | redot-engine-8a28f816d011d86a2f7cbbe6aaa97ac616f7596a.tar.gz |
Replace Clipper1 library by Clipper2 library
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/math/test_geometry_2d.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/core/math/test_geometry_2d.h b/tests/core/math/test_geometry_2d.h index 50b2575700..a4bb6dfca0 100644 --- a/tests/core/math/test_geometry_2d.h +++ b/tests/core/math/test_geometry_2d.h @@ -711,12 +711,12 @@ TEST_CASE("[Geometry2D] Clip polyline with polygon") { r = Geometry2D::clip_polyline_with_polygon(l, p); REQUIRE_MESSAGE(r.size() == 2, "There should be 2 resulting clipped lines."); REQUIRE_MESSAGE(r[0].size() == 3, "The resulting clipped line should have 3 vertices."); - CHECK(r[0][0].is_equal_approx(Vector2(160, 320))); + CHECK(r[0][0].is_equal_approx(Vector2(121.412682, 225.038757))); CHECK(r[0][1].is_equal_approx(Vector2(122, 250))); - CHECK(r[0][2].is_equal_approx(Vector2(121.412682, 225.038757))); + CHECK(r[0][2].is_equal_approx(Vector2(160, 320))); REQUIRE_MESSAGE(r[1].size() == 2, "The resulting clipped line should have 2 vertices."); - CHECK(r[1][0].is_equal_approx(Vector2(53.07737, 116.143021))); - CHECK(r[1][1].is_equal_approx(Vector2(55, 70))); + CHECK(r[1][0].is_equal_approx(Vector2(55, 70))); + CHECK(r[1][1].is_equal_approx(Vector2(53.07737, 116.143021))); } } |