I'm programming a tool and I need to know how to calculate the distance between two points in 3D space?
Please if possible explain it the way appropriate for programming.
Thank you in advance
Assuming that your points are given in (x, y, z) form, then if the two points are $\displaystyle (x_1,y_1,z_1)$ and $\displaystyle (x_2,y_2,z_2)$, the distance between the points is SQUAREROOT($\displaystyle (x_1-x_2)^2+ (y_1-y_2)^2+ (z_1-z_2)^2$). It's that easy!