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

Function GetPoints

tools/openlr/decoded_path.cpp:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163namespace routing
164{
165std::vector<m2::PointD> GetPoints(openlr::Path const & p)
166{
167 CHECK(!p.empty(), ("Path should not be empty"));
168 std::vector<m2::PointD> points;
169 points.push_back(GetStart(p.front()));
170 for (auto const & e : p)
171 points.push_back(GetEnd(e));
172
173 return points;
174}
175} // namespace routing

Callers 4

OnItemSelectedMethod · 0.85
GoldifyMatchedPathMethod · 0.85
RollBackPathMethod · 0.85
UNIT_TESTFunction · 0.85

Calls 5

GetStartFunction · 0.85
GetEndFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68