3D Distance & Midpoint

Distance and midpoint between two 3D points

Point P₁
Point P₂
d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
Distance
13
Midpoint
(1,5, 2, 6)
Displacement (P₂ − P₁)
(3, 4, 12)
Distance²
169
3D Distance & MidpointA 3D coordinate sketch showing point P₁ at (0, 0, 0) and point P₂ at (3, 4, 12), connected by a line of length 13 with the midpoint M marked at (1.5, 2, 6).13MP₁P₂xyz