Template Function lanelet::geometry::distanceToCenterline2d
Defined in File Lanelet.h
Function Documentation
-
template<typename LaneletT>
double lanelet::geometry::distanceToCenterline2d(const LaneletT &lanelet, const BasicPoint2d &point) calculates distance in 2d to the centerline of a lanelet.
Has linear complexity on the number of points in the lanelet.
- Parameters:
lanelet – lanelet to take the centerline from
point – the point
- Returns:
metric distance