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

Function Documentation

template<typename Lanelet1T, typename Lanelet2T>
IfLL<Lanelet1T, IfLL<Lanelet2T, bool>> lanelet::geometry::follows(const Lanelet1T &prev, const Lanelet2T &next)

checks if a lanelet is the direct successor by checking if they share the same start/endpoints

Be aware that the orientation of the lanelets (see Lanelet::invert()) is important.