Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to computer the distance of two 3-D points?

How to computer the distance of two 3-D points-----(x1,y1,z1) and (x1,y2,z2)?
0 Kudos
Message 1 of 3
(3,244 Views)

Well this is an extremely hard mathematical challenge Smiley Mad:

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

Vladimir


View my profile on LinkedIn
0 Kudos
Message 2 of 3
(3,240 Views)
or if you can't be bothered to wire that correctly and you have the (signal processing toolbox?) you can use the unit vector vi to find the 2-norm of the vector connecting the two points.
0 Kudos
Message 3 of 3
(3,234 Views)