Template Function lanelet::geometry::align

Function Documentation

template<typename LineString1T, typename LineString2T>
std::pair<LineString1T, LineString2T> lanelet::geometry::align(LineString1T left, LineString2T right)

inverts the two linestrings such that they are parallel

Example input: <<<<<<<<LeftLinestring<<<<<<<

>>>>>>>>RightLinestring>>>>>>

Example output. Left was inverted: >>>>>>>>First>>>>>>>>>>>>>>>>

>>>>>>>>Second>>>>>>>>>>>>>>>

Parameters:
  • left – the designated left linestring

  • right – the designated right linestring

Returns:

a pair of the left and right linestring (in this order), potentially inverted.