Function lib3d::intersect2D

Function Documentation

inline bool lib3d::intersect2D(cv::Point2f o1, cv::Point2f d1, cv::Point2f o2, cv::Point2f d2, cv::Point2f &r)

Finds the intersection of two lines, or returns fals. The lines are defined with origin and direction as (o1, d1) and (o2, d2).

See also

adapted from https://stackoverflow.com/a/7448287