Template Function lanelet::geometry::project(const LineString3dT&, const BasicPoint3d&)
Defined in File LineString.h
Function Documentation
-
template<typename LineString3dT, typename>
BasicPoint3d lanelet::geometry::project(const LineString3dT &lineString, const BasicPoint3d &pointToProject) Projects the given point in 3d to the LineString.
If the point is before or behind the lineString, this will be the respective endpoint of the lineString. If not, this will be some interpolated point on the linestring that minimizes the distance between pointToProject and the lineString