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

Function TestEqual

libs/geometry/geometry_tests/spline_test.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18double constexpr kAlmostZero = 1.0E-16;
19
20void TestEqual(double x, double y)
21{
22 if (fabs(x) < kAlmostZero || fabs(y) < kAlmostZero)
23 TEST_ALMOST_EQUAL_ABS(x, y, kAlmostZero, ());
24 else
25 TEST_ALMOST_EQUAL_ULPS(x, y, ());
26}
27
28void TestPointDDir(PointD const & dst, PointD const & src)
29{

Callers 1

TestPointDDirFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected