Template Function lanelet::geometry::internal::lateralShiftPointAtIndex

Function Documentation

template<typename LineString2dT>
BasicPoint2d lanelet::geometry::internal::lateralShiftPointAtIndex(const LineString2dT &lineString, const int idx, const double distance)

create a point by moving distance laterally from the linestring at the point idx. The direction is the average of the directions orthogonal to the segments neighbouring the point.

Parameters:
  • lineString – lineString to operate on

  • idx – index of point to shift (negative means counting from back)

  • distance – to shift (left = positive)