distance+formula+in+three+dimensions

(X2-X1)^2 + (Y2-Y1)^2 + (Z2-Z1)^2