23 #define SMALL_NUM 0.00000001 // anything that avoids division overflow 77 else if ((-d +
b) >
a)
85 sc = (fabs(sN) <
SMALL_NUM ? 0.0 : sN / sD);
89 Eigen::Vector3f dP =
w + (sc * u) - (
tc *
v);
91 return dP.squaredNorm();
96 Eigen::Vector2f normalLine;
98 for(
size_t i=1; i < hull3D->size(); i++)
100 normalLine[0] = hull3D->points[i-1].y - hull3D->points[i].y;
101 normalLine[1] = hull3D->points[i].x - hull3D->points[i-1].x;
102 r[0] = point3D.x - hull3D->points[i].x;
103 r[1] = point3D.y - hull3D->points[i].y;
104 if( (
r .dot( normalLine) ) < 0)
Eigen::Vector3f diffPoints(const POINT &P1, const POINT &P2)
GLubyte GLubyte GLubyte GLubyte w
float PBMAP_IMPEXP dist3D_Segment_to_Segment2(Segment S1, Segment S2)
GLdouble GLdouble GLdouble r
bool PBMAP_IMPEXP isInHull(PointT &point3D, pcl::PointCloud< PointT >::Ptr hull3D)
GLubyte GLubyte GLubyte a