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

Method GetCurrentDistanceToEndMeters

libs/routing/route.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68double Route::GetCurrentDistanceToEndMeters() const
69{
70 if (!IsValid())
71 return 0.0;
72 return m_poly.GetDistanceToEndMeters();
73}
74
75double Route::GetCurrentDistanceToSegmentMeters(size_t segIdx) const
76{

Callers 2

GetRouteFollowingInfoMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 2

IsValidFunction · 0.50

Tested by 1

UNIT_TESTFunction · 0.64