diff --git a/routing/base/followed_polyline.cpp b/routing/base/followed_polyline.cpp index 4aa2b9aba9..8a38cf321c 100644 --- a/routing/base/followed_polyline.cpp +++ b/routing/base/followed_polyline.cpp @@ -136,10 +136,6 @@ Iter FollowedPolyline::GetClosestProjectionInInterval(m2::RectD const & posRect, return res; } -/// \returns iterator to the best projection of center of |posRect| to the |m_poly|. -/// If there's a good projection of center of |posRect| to two closest segments of |m_poly| -/// after |m_current| the iterator corresponding of the projection returns. -/// Otherwise returned a projection to closest point of route. template Iter FollowedPolyline::GetBestProjection(m2::RectD const & posRect, DistanceFn const & distFn) const diff --git a/routing/base/followed_polyline.hpp b/routing/base/followed_polyline.hpp index 35245409e9..7e7241533c 100644 --- a/routing/base/followed_polyline.hpp +++ b/routing/base/followed_polyline.hpp @@ -78,6 +78,11 @@ private: template Iter GetClosestProjectionInInterval(m2::RectD const & posRect, DistanceFn const & distFn, size_t startIdx, size_t endIdx) const; + + /// \returns iterator to the best projection of center of |posRect| to the |m_poly|. + /// If there's a good projection of center of |posRect| to two closest segments of |m_poly| + /// after |m_current| the iterator corresponding of the projection is returned. + /// Otherwise returns a projection to closest point of route. template Iter GetBestProjection(m2::RectD const & posRect, DistanceFn const & distFn) const;