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

Function check_sides

libs/geometry/geometry_tests/intersect_test.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void check_sides(m2::RectD const & r)
91{
92 for (int i = 0; i < 4; ++i)
93 {
94 m2::PointD p1 = (get_point(r, i) + get_point(r, i + 1)) / 2.0;
95 m2::PointD p2 = (get_point(r, i + 2) + get_point(r, i + 3)) / 2.0;
96 check_full_equal(r, p1, p2, strict_equal());
97 check_inside(r, p1, p2);
98 }
99}
100
101void check_eps_boundaries(m2::RectD const & r, double eps = 1.0E-6)
102{

Callers 1

UNIT_TESTFunction · 0.85

Calls 4

get_pointFunction · 0.85
check_full_equalFunction · 0.85
strict_equalClass · 0.85
check_insideFunction · 0.85

Tested by

no test coverage detected