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

Function TestIntersectionResult

libs/geometry/geometry_tests/segment2d_tests.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10double const kEps = 1e-10;
11
12void TestIntersectionResult(IntersectionResult const & result, IntersectionResult::Type expectedType,
13 PointD const & expectedPoint)
14{
15 TEST_EQUAL(result.m_type, expectedType, ());
16 TEST(AlmostEqualAbs(result.m_point, expectedPoint, kEps), (result.m_point, expectedPoint, kEps));
17}
18
19bool TestSegmentsIntersect(PointD a, PointD b, PointD c, PointD d)
20{

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

TESTFunction · 0.85
AlmostEqualAbsFunction · 0.50

Tested by

no test coverage detected