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

Function GetLastIngoingPointIndex

libs/routing/turns_generator_utils.cpp:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171RoutePointIndex GetLastIngoingPointIndex(TUnpackedPathSegments const & segments, size_t const outgoingSegmentIndex)
172{
173 ASSERT_GREATER(outgoingSegmentIndex, 0, ());
174 ASSERT(segments[outgoingSegmentIndex - 1].IsValid(), ());
175 return RoutePointIndex(
176 {outgoingSegmentIndex - 1, segments[outgoingSegmentIndex - 1].m_path.size() - 1 /* m_pathIndex */});
177}
178
179m2::PointD GetPointByIndex(TUnpackedPathSegments const & segments, RoutePointIndex const & index)
180{

Callers 1

GetPointForTurnFunction · 0.85

Calls 4

ASSERTFunction · 0.85
RoutePointIndexClass · 0.70
IsValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected