Function lanelet::geometry::closestSegment(const BasicLineString2d&, const BasicPoint2d&)
Defined in File LineString.h
Function Documentation
-
Segment<BasicPoint2d> lanelet::geometry::closestSegment(const BasicLineString2d &lineString, const BasicPoint2d &pointToProject)
find the segment on a 2d line string that is closest to a given point, determined by boost::geometry::distance
- Parameters:
lineString – the line string the distance function is evaluated on
pointToProject – 2d point that is projected on to the linestring
- Returns:
a new segment that is identical to the closest one on the line string