DISTANCEPOINTEDGE3D Minimum distance between a 3D point and a 3D edge.

   DIST = distancePointEdge3d(POINT, EDGE);
   Return the euclidean distance between edge EDGE and point POINT. 
   EDGE has the form: [x1 y1 z1 x2 y2 z2], and POINT is [x y z].

   If EDGE is N-by-6 array, result is N-by-1 array computed for each edge.
   If POINT is a N-by-3 array, the result is computed for each point.
   If both POINT and EDGE are array, they must have the same number of
   rows, and the result is computed for each couple point(i,:);edge(i,:).

   [DIST POS] = distancePointEdge3d(POINT, EDGE);
   Also returns the position of closest point on the edge. POS is
   comprised between 0 (first point) and 1 (last point).

   See also:
   edges3d, points3d, distancePoints3d, distancePointLine3d
   

Package: matgeom