Question 879390
The distance formula can be extended to three dimensions with no obstacles.


Using symbols to be more accurate, you can use, for three dimensions,
{{{sqrt((x[1]-x[2])^2+(y[1]-y[2])^2+(z[1]-z[2])^2)}}}.