Yes, the distance formula can be extended to three dimensions. To find the distance between the two points [katex] \\left(x_{1},y_{1},z_{1}\\right) [/katex] and [katex] \\left(x_{2},y_{2},z_{2}\\right) [/katex] and using the following formula: [katex] d=\\sqrt{\\left(x_2-x_1\\right)^2+\\left(y_2-y_1\\right)^2+\\left(z_2-z_1\\right)^2} [/katex]