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

Function JunctionsToPoints

libs/routing/road_graph.hpp:336–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335template <class PointT>
336void JunctionsToPoints(std::vector<PointT> const & junctions, std::vector<m2::PointD> & points)
337{
338 points.resize(junctions.size());
339 for (size_t i = 0; i < junctions.size(); ++i)
340 points[i] = junctions[i].GetPoint();
341}
342
343template <class PointT>
344void JunctionsToAltitudes(std::vector<PointT> const & junctions, geometry::Altitudes & altitudes)

Callers 1

ReconstructRouteFunction · 0.85

Calls 3

resizeMethod · 0.45
sizeMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected