Function swri_geometry_util::LineIntersection
Defined in File intersection.h
Function Documentation
-
bool swri_geometry_util::LineIntersection(const cv::Vec2d &p1, const cv::Vec2d &p2, const cv::Vec2d &p3, const cv::Vec2d &p4, cv::Vec2d &c)
Calculate the instersection between two lines defined by 4 points.
- Parameters:
p1 – [in] First point of line segment 1.
p2 – [in] Second point of line segment 1.
p3 – [in] First point of line segment 2.
p4 – [in] Second point of line segment 2.
c – [out] The intersection point.
- Returns:
True if the lines are not parallel.