Function lanelet::geometry::closestSegment(const BasicLineString3d&, const BasicPoint3d&)
Defined in File LineString.h
Function Documentation
-
Segment<BasicPoint3d> lanelet::geometry::closestSegment(const BasicLineString3d &lineString, const BasicPoint3d &pointToProject)
find the segment on a 3d 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 – 3d point that is projected on to the linestring
- Returns:
a new segment that is identical to the closest one on the line string