Template Function lanelet::geometry::intersectCenterlines2d

Function Documentation

template<typename Lanelet1T, typename Lanelet2T>
BasicPoints2d lanelet::geometry::intersectCenterlines2d(const Lanelet1T &lanelet, const Lanelet2T &otherLanelet, std::vector<double> *distanceThis = nullptr, std::vector<double> *distanceOther = nullptr)

calculates points of intersection between centerlines in 2d.

Parameters:
  • lanelet – first lanelet to calculate from

  • otherLanelet – second lanelet to calculate from

  • distanceThis – optional: if not null will contain distances to travel along the centerline to each intersection point. Same size as the returned result.

  • distanceOther – optional: same for the other lanelet

Returns:

vector of intersection points, of empty if none.