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

Method GetTotalDistanceMeters

libs/routing/base/followed_polyline.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48double FollowedPolyline::GetTotalDistanceMeters() const
49{
50 if (!IsValid())
51 {
52 ASSERT(IsValid(), ());
53 return 0;
54 }
55 return m_segDistance.back();
56}
57
58double FollowedPolyline::GetDistanceFromStartMeters() const
59{

Callers 6

TestRouteLengthFunction · 0.45
TestRoutersMethod · 0.45
TestRouterFunction · 0.45
operator()Method · 0.45
BuildRouteMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 3

ASSERTFunction · 0.85
backMethod · 0.80
IsValidFunction · 0.50

Tested by 5

TestRouteLengthFunction · 0.36
TestRoutersMethod · 0.36
TestRouterFunction · 0.36
BuildRouteMethod · 0.36
UNIT_TESTFunction · 0.36