Function swri_geometry_util::PointOnLineSegment

Function Documentation

bool swri_geometry_util::PointOnLineSegment(const cv::Vec2d &p1, const cv::Vec2d &p2, const cv::Vec2d &p3)

Check if a point is on a line segment.

Parameters:
  • p1[in] The point.

  • p2[in] First point of the line segemnt.

  • p3[in] Second point of the line segemnt.

Returns:

True if the point is on the line segment.