Template Function lanelet::geometry::intersects3d(const Lanelet1T&, const Lanelet2T&, double)

Function Documentation

template<typename Lanelet1T, typename Lanelet2T>
IfLL<Lanelet1T, bool> lanelet::geometry::intersects3d(const Lanelet1T &lanelet, const Lanelet2T &otherLanelet, double heightTolerance = 3.)

test whether two lanelets intersect in 2d.

Todo:

this is currently only an approximation based on the centerlines

Parameters:
  • lanelet – lanelet to check for

  • otherLanelet – other lanelet to check for

  • heightTolerance – distance in z below which lanelets are considered as intersecting

Returns:

true if lanelets have intersections.