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

Method GetSquaredDist

libs/routing/index_router.cpp:239–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239double IndexRouter::BestEdgeComparator::GetSquaredDist(Edge const & edge) const
240{
241 m2::ParametrizedSegment<m2::PointD> const segment(edge.GetStartJunction().GetPoint(),
242 edge.GetEndJunction().GetPoint());
243 return segment.SquaredDistanceToPoint(m_point);
244}
245
246// IndexRouter ------------------------------------------------------------------------------------
247IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes,

Callers 1

Calls 2

GetPointMethod · 0.45

Tested by

no test coverage detected