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

Function check_point_in_rect

libs/geometry/geometry_tests/intersect_test.cpp:132–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130namespace
131{
132void check_point_in_rect(m2::RectD const & r, m2::PointD const & p)
133{
134 m2::PointD p1 = p;
135 m2::PointD p2 = p;
136
137 TEST(m2::Intersect(r, p1, p2), ());
138 TEST(p == p1 && p == p2, ());
139}
140} // namespace
141
142UNIT_TEST(IntersectRect_Point)

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

TESTFunction · 0.85
IntersectFunction · 0.70

Tested by

no test coverage detected