Template Function lanelet::geometry::determineCommonLine(const Lanelet1T&, const Lanelet2T&, bool)

Function Documentation

template<typename Lanelet1T, typename Lanelet2T>
IfLL<Lanelet1T, IfLL<Lanelet2T, Optional<ConstLineString3d>>> lanelet::geometry::determineCommonLine(const Lanelet1T &ll, const Lanelet2T &other, bool allowInverted = false)

find a common line string in ll and other.

Parameters:
  • llLanelet

  • otherLanelet

  • allowInverted – if true, the orientation of the line strings is ignored

Returns:

line string in ll if it is shared with other