Template Function lanelet::geometry::signedDistance(const LineString3dT&, const BasicPoint3d&)
Defined in File LineString.h
Function Documentation
-
template<typename LineString3dT>
double lanelet::geometry::signedDistance(const LineString3dT &lineString, const BasicPoint3d &p) Calculate the metric signed distance from p to the LineString. The sign is positive if the point is left of the linestring when projecting to the xy-plane.
- Todo:
not sure if this works as expected
If the point is before or behind the linestring, this is checked by extrapolating the first or last segment.
- Parameters:
lineString – the linestring to check for
p – the point to check for
- Returns:
The metric signed distance in 3d.