| 30 | } |
| 31 | |
| 32 | UNIT_TEST(SegmentIntersection_Collinear) |
| 33 | { |
| 34 | TEST(!TestSegmentsIntersect({0.0, 0.0}, {1.0, 1.0}, {2.0, 3.0}, {3.0, 3.0}), ("Far away")); |
| 35 | TEST(TestSegmentsIntersect({0.0, 0.0}, {1.0, 1.0}, {1.0, 1.0}, {3.0, 3.0}), ("Border intersection")); |
| 36 | TEST(TestSegmentsIntersect({0.0, 0.0}, {2.0, 2.0}, {1.0, 1.0}, {3.0, 3.0}), ("Normal intersection")); |
| 37 | TEST(TestSegmentsIntersect({0.0, 0.0}, {2.0, 2.0}, {0.0, 0.0}, {3.0, 3.0}), ("Border inclusion")); |
| 38 | TEST(TestSegmentsIntersect({1.0, 1.0}, {2.0, 2.0}, {0.0, 0.0}, {3.0, 3.0}), ("Normal inclusion")); |
| 39 | } |
| 40 | |
| 41 | UNIT_TEST(SegmentIntersection_NoIntersection) |
| 42 | { |
nothing calls this directly
no test coverage detected