Template Function lanelet::geometry::signedCurvature2d

Function Documentation

template<typename Point2dT>
double lanelet::geometry::signedCurvature2d(const Point2dT &p1, const Point2dT &p2, const Point2dT &p3)

Calculate the signed curvature value given 3 consecutive points. The signed curvature value is positive if the consecutive points describe a left turn, negative otherwise.

If any 2 of the 3 points duplicate, return infinity.

Parameters:

p1, p2, p3 – are the points

Returns:

curvature value.