20 Point3d const& pb,
double& lambda,
double& d0)
27 Eigen::Vector3d
const v = b - a;
32 lambda = (((
p - a).transpose() *
v) /
v.squaredNorm())(0, 0);
35 Eigen::Vector3d
const proj_pnt = a + lambda *
v;
37 d0 = (proj_pnt - a).norm();
39 return (
p - proj_pnt).norm();
49 return std::acos(v0.dot(v1) / (v0.norm() * v1.norm()));
Definition of the Point3d class.
Eigen::Vector3d const & asEigenVector3d() const
double calcProjPntToLineAndDists(Point3d const &pp, Point3d const &pa, Point3d const &pb, double &lambda, double &d0)
double getAngle(Point3d const &p0, Point3d const &p1, Point3d const &p2)