Template Function lanelet::geometry::accumulatedLengthRatios

Function Documentation

template<typename LineStringT>
std::vector<double> lanelet::geometry::accumulatedLengthRatios(const LineStringT &lineString)

Calculates the accumulated length ratios for the lines in the LineString.

The last element will aways be (near) 1

See also

lengthRatios, but summed up along the LineString.

Parameters:

lineString – the LineString to do this for.

Returns:

A vector of length ratios. Size is lineString.size()-1