db23d

PURPOSE ^

function [dd] = db23d(x1,y1,z1,x2,y2,z2);

SYNOPSIS ^

function [dd] = db23d(x1,y1,z1,x2,y2,z2);

DESCRIPTION ^

function [dd] = db23d(x1,y1,z1,x2,y2,z2);

Auxiliary function that caclulates the distance between 
two points or two sets of points in 3D



(x1,y1,z1) = The coordinates of the first point(s) in 3D
(x2,y2,z2) = The coordinates of the second point(s) in 3D
dd         = Their distance(s)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [dd] = db23d(x1,y1,z1,x2,y2,z2);
0002 %function [dd] = db23d(x1,y1,z1,x2,y2,z2);
0003 %
0004 %Auxiliary function that caclulates the distance between
0005 %two points or two sets of points in 3D
0006 %
0007 %
0008 %
0009 %(x1,y1,z1) = The coordinates of the first point(s) in 3D
0010 %(x2,y2,z2) = The coordinates of the second point(s) in 3D
0011 %dd         = Their distance(s)
0012 
0013 dd = sqrt((x2 - x1).^2 + (y2 - y1).^2 + (z2 - z1).^2);
0014 
0015 
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 % This is part of the EIDORS suite.
0018 % Copyright (c) N. Polydorides 2003
0019 % Copying permitted under terms of GNU GPL
0020 % See enclosed file gpl.html for details.
0021 % EIDORS 3D version 2.0
0022 % MATLAB version 5.3 R11
0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Generated on Tue 09-Aug-2011 11:38:31 by m2html © 2005