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

Method UpdateMatchingProjection

libs/routing/base/followed_polyline.cpp:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148bool 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
164Iter FollowedPolyline::UpdateProjection(m2::RectD const & posRect)
165{

Callers 1

MoveIteratorMethod · 0.80

Calls 3

ASSERTFunction · 0.85
IsValidMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected