My projects: SUGG (M, KS), CRZST, SYNONS, URLS, Misc: 3Dengine, UniteHowTo, FliCC, My blog.
Old/abandoned: TheRarestWords (TcCrnch).
Hi, I'm Slava V. and I develop those projects in free time. rarestwords@mail.ru
To main page | 3dengine.org

Distance between 3D points


Distance between 3D points equals the square root of sum of sqares of diferences between similar coordinates:
distance = sqrt( (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1) + (z2-z1)*(z2-z1) )
where x2 = x of point2; x1 = x of point 1.