PDA

View Full Version : Between 2 points



Blza
07-06-2000, 11:14 AM
hello there...
a easy question for ya...

how can i find a distance between 2 points...
i mean, (x1,y1,z1) to (x2,y2,z2) ...

thanx in advance...

07-06-2000, 11:19 AM
Hey,

try :

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

DoğanÇoruh
07-07-2000, 01:53 AM
Hım good question but why did you ask?
if it is for collision detection please look at to my topic Bounding Spheres but walls?

thanks
regards