| 146 | } |
| 147 | |
| 148 | bool FollowedPolyline::UpdateMatchingProjection(m2::RectD const & posRect) |
| 149 | { |
| 150 | ASSERT(m_current.IsValid(), ()); |
| 151 | ASSERT_LESS(m_current.m_ind, m_poly.GetSize() - 1, ()); |
| 152 | |
| 153 | auto const iter = GetBestMatchingProjection(posRect); |
| 154 | |
| 155 | if (iter.IsValid()) |
| 156 | { |
| 157 | m_current = iter; |
| 158 | return true; |
| 159 | } |
| 160 | |
| 161 | return false; |
| 162 | } |
| 163 | |
| 164 | Iter FollowedPolyline::UpdateProjection(m2::RectD const & posRect) |
| 165 | { |
no test coverage detected