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

Function get_point

libs/geometry/geometry_tests/intersect_test.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15m2::PointD get_point(m2::RectD const & r, int ind)
16{
17 switch (ind % 4)
18 {
19 case 0: return r.LeftBottom();
20 case 1: return r.LeftTop();
21 case 2: return r.RightTop();
22 case 3: return r.RightBottom();
23 default: ASSERT(false, ()); return m2::PointD();
24 }
25}
26
27void make_section_longer(m2::PointD & p1, m2::PointD & p2, double sm)
28{

Callers 5

check_intersect_diagonalFunction · 0.85
check_sidesFunction · 0.85
check_eps_boundariesFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 5

ASSERTFunction · 0.85
LeftBottomMethod · 0.80
LeftTopMethod · 0.80
RightTopMethod · 0.80
RightBottomMethod · 0.80

Tested by

no test coverage detected