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

Method Contains

generator/borders.cpp:135–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133} // namespace
134
135bool CountryPolygons::Contains(m2::PointD const & point) const
136{
137 return m_polygons.ForAnyInRect(m2::RectD(point, point), [&](auto const & rgn)
138 { return rgn.Contains(point, ContainsCompareFn(GetContainsEpsilon())); });
139}
140
141bool LoadBorders(std::string const & borderFile, PolygonsList & outBorders)
142{

Callers 6

AssignAreaMethod · 0.45
ProcessBoundaryMethod · 0.45
EnrichMethod · 0.45
GetAffiliationsFunction · 0.45
GetHonestAffiliationsFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 2

ContainsCompareFnClass · 0.85
ForAnyInRectMethod · 0.80

Tested by 1

UNIT_TESTFunction · 0.36