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

Method GetIterToIndex

libs/routing/base/followed_polyline.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25Iter FollowedPolyline::GetIterToIndex(size_t index) const
26{
27 ASSERT(IsValid(), ());
28 ASSERT_LESS(index, m_poly.GetSize(), ());
29
30 return Iter(m_poly.GetPoint(index), index);
31}
32
33double FollowedPolyline::GetDistanceM(Iter const & it1, Iter const & it2) const
34{

Callers 3

GetNearestTurnMethod · 0.80
GetNextTurnMethod · 0.80

Calls 5

ASSERTFunction · 0.85
IterClass · 0.85
IsValidFunction · 0.50
GetSizeMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected