MCPcopy Create free account
hub / github.com/comaps/comaps / CheckSelfIntersections

Function CheckSelfIntersections

libs/geometry/geometry_tests/robust_test.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14template <typename TIt>
15void CheckSelfIntersections(TIt beg, TIt end, bool res)
16{
17 TEST_EQUAL(CheckPolygonSelfIntersections(beg, end), res, ());
18 using TRevIt = std::reverse_iterator<TIt>;
19 TEST_EQUAL(CheckPolygonSelfIntersections(TRevIt(end), TRevIt(beg)), res, ());
20}
21
22bool OnSegment(P const & p, P const ps[])
23{

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

Tested by

no test coverage detected