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

Method IsInside

generator/osm2type.cpp:1523–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1521 // Add new {lon, lat} city bboxes here.
1522 }
1523 bool IsInside(m2::PointD const & pt)
1524 {
1525 auto const ll = mercator::ToLatLon(pt);
1526 for (auto const & r : m_rects)
1527 if (r.IsPointInside({ll.m_lon, ll.m_lat}))
1528 return true;
1529 return false;
1530 }
1531 };
1532
1533 static CityBBox s_cityBBox;

Callers 1

GetNameAndTypeFunction · 0.80

Calls 2

ToLatLonFunction · 0.70
IsPointInsideMethod · 0.45

Tested by

no test coverage detected