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

Method GetCurrentDistanceToSegmentMeters

libs/routing/route.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75double Route::GetCurrentDistanceToSegmentMeters(size_t segIdx) const
76{
77 if (!IsValid())
78 return 0.0;
79
80 double const endDistance = m_routeSegments[segIdx].GetDistFromBeginningMeters();
81 double const passedDistance = GetCurrentDistanceFromBeginMeters();
82
83 return endDistance - passedDistance;
84}
85
86double Route::GetMercatorDistanceFromBegin() const
87{

Callers 1

GetRouteFollowingInfoMethod · 0.80

Calls 2

IsValidFunction · 0.50

Tested by

no test coverage detected