37 #ifndef PCL_GEOMETRY_H_
38 #define PCL_GEOMETRY_H_
54 template<
typename Po
intT>
57 Eigen::Vector3f diff = p1 -p2;
61 template<
typename Po
intT>
64 Eigen::Vector3f diff = p1 -p2;
65 return diff.squaredNorm ();
73 template<
typename Po
intT,
typename NormalT>
76 Eigen::Vector3f po = point - plane_origin;
77 const Eigen::Vector3f normal = plane_normal.getVector3fMapConst ();
78 float lambda = normal.dot(po);
79 projected.getVector3fMap () = point.getVector3fMapConst () - (lambda * normal);
87 inline void project(
const Eigen::Vector3f& point,
const Eigen::Vector3f &plane_origin,
const Eigen::Vector3f& plane_normal, Eigen::Vector3f& projected)
89 Eigen::Vector3f po = point - plane_origin;
90 float lambda = plane_normal.dot(po);
91 projected = point - (lambda * plane_normal);
97 #endif //#ifndef PCL_GEOMETRY_H_