function distance = dist3d(x1, y1, z1, x2, y2, z2)

% dist3d(x1, y1, z1, x2, y2, z2) -- compute 3D distances
%
% A two-dimensional distance computation algorithm.
% Given any set of X's, Y's and Z's, this
% function will tell you the 3-D distance between the two. 
%
% Example:
% dist3d(x,y,z, x0, y0, z0)


distance = sqrt( (x1 -x2)^2 + (y1 - y2)^2 + (z1 - z2)^2);



