From 1a018df03dec1b66d250d1ea3b858d5176ee59e5 Mon Sep 17 00:00:00 2001 From: ochilan Date: Mon, 15 Apr 2013 14:11:13 +0300 Subject: [PATCH] Fix two c&p errors in normal_3d.h --- features/include/pcl/features/normal_3d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/include/pcl/features/normal_3d.h b/features/include/pcl/features/normal_3d.h index 8009002d0a5..1e4a45c604d 100644 --- a/features/include/pcl/features/normal_3d.h +++ b/features/include/pcl/features/normal_3d.h @@ -119,7 +119,7 @@ namespace pcl flipNormalTowardsViewpoint (const PointT &point, float vp_x, float vp_y, float vp_z, Eigen::Matrix& normal) { - Eigen::Matrix vp (vp_x - point.x, vp_y - point.x, vp_z - point.z, 0); + Eigen::Matrix vp (vp_x - point.x, vp_y - point.y, vp_z - point.z, 0); // Dot product between the (viewpoint - point) and the plane normal float cos_theta = vp.dot (normal); @@ -146,7 +146,7 @@ namespace pcl flipNormalTowardsViewpoint (const PointT &point, float vp_x, float vp_y, float vp_z, Eigen::Matrix& normal) { - Eigen::Matrix vp (vp_x - point.x, vp_y - point.x, vp_z - point.z); + Eigen::Matrix vp (vp_x - point.x, vp_y - point.y, vp_z - point.z); // Flip the plane normal if (vp.dot (normal) < 0)