Open wangh0117 opened 4 years ago
auto line2 = x0*x1.transpose() - x1*x0.transpose();
auto line3 = x0*x2.transpose() - x2*x0.transpose();
Eigen::Vector4d pts1 = line2*plane;
Eigen::Vector4d pts2 = line3*plane;
pts1 = pts1/pts1.w();
cout << "point1 is "<<pts1<<endl;
pts2 = pts2/pts2.w();
cout << "point2 is "<<pts2<<endl;
point1 is -7.21645e-16 0 2 1 point2 is -1.83187e-15 0 4 1