I am assuming you are talking about the straight line distance between two points:
 
distance=sqrt[ (x1-x2)*(x1-x2) +(y1-y2)*(y1-y2)+(z1-Z2)*(z1-z2)]
ie  thhe square root of the sum of the squares of the differences in each respective coordinate
Where (x1,y1,z1) are the coordinates of the first point and (x2,y2,z2)=the coordinates of the second point.
 
If you wish to find the distance between two points along a surface, we get into some funky differential
equations.  If you need that, please take Calculus 104 and Advanced Geometry 228 :)
 
Did that answer your question?
----- Original Message -----
From: Tom Cox
Sent: Thursday, April 06, 2000 4:10 PM
Subject: [mfg-smartcam] algebraic

Does anyone remember the algebraic formula for distance between two given points?
I have to make a macro that will require it. It's been way to long ago for me to remember.
 
Thanks
 
 

Reply via email to