MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/map/bookmark_manager.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 {}
66
67 void operator()(UserMark const * mark)
68 {
69 m2::PointD const & org = mark->GetPivot();
70 if (m_rect.IsPointInside(org))
71 {
72 double const minDCandidate = m_globalCenter.SquaredLength(org);
73 if (minDCandidate < m_minD)
74 {
75 *m_mark = mark;
76 m_minD = minDCandidate;
77 }
78 }
79 }
80
81 UserMark const ** m_mark;
82 double & m_minD;

Callers

nothing calls this directly

Calls 3

SquaredLengthMethod · 0.80
GetPivotMethod · 0.45
IsPointInsideMethod · 0.45

Tested by

no test coverage detected