Template Function lanelet::geometry::offsetNoThrow

Function Documentation

template<typename LineString2dT>
BasicLineString2d lanelet::geometry::offsetNoThrow(const LineString2dT &lineString, double distance)

create a linestring that is offset to the original one. the result.

The offset is generated by shifting points of the line string and making a new line string from them. No exception is thrown when

Parameters:
  • lineString – linestring to offset

  • distance – offset distance (left = positive)

Throws:
  • InvalidInpuError – if the linestring has less than 2 points

  • GeometryError – if the linestring is partially inverted after applying offset