Function lib3d::intersect3D

Function Documentation

inline bool lib3d::intersect3D(cv::Point3f p1, cv::Point3f p2, cv::Point3f p3, cv::Point3f p4, cv::Point3f &outA, cv::Point3f &outB, double &muA, double &muB)

Calculate the line segment PaPb that is the shortest route between two lines P1P2 and P3P4.

Calculate also the values of mua and mub where Pa = P1 + mua (P2 - P1) Pb = P3 + mub (P4 - P3) Return FALSE if no solution exists.