Distance and Midpoint Calculator (2D/3D Euclidean Distance)

The distance calculator takes the Cartesian coordinates of two points, (x1, y1, z1) and (x2, y2, z2), and returns the straight-line (Euclidean) distance between them, d = \sqrt{\Delta x^2 + \Delta y^2 + \Delta z^2}, together with the x and y coordinates of the midpoint of the segment. Set both z values to 0 and it becomes the distance between two points in the plane.