| 237 | } |
| 238 | |
| 239 | double 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 ------------------------------------------------------------------------------------ |
| 247 | IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, |
no test coverage detected