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

Function PointsAreClose

tools/openlr/helpers.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool PointsAreClose(m2::PointD const & p1, m2::PointD const & p2)
114{
115 double const kMwmRoadCrossingRadiusMeters = routing::GetRoadCrossingRadiusMeters();
116 return mercator::DistanceOnEarth(p1, p2) < kMwmRoadCrossingRadiusMeters;
117}
118
119double EdgeLength(Graph::Edge const & e)
120{

Callers 2

EdgesAreAlmostEqualFunction · 0.85

Calls 2

DistanceOnEarthFunction · 0.50

Tested by

no test coverage detected