Find how to calculate the distance between two-point in a 1D, 2D, and 3D dimensional.
Formula:
X1 = Coordinates of the first point
X2 = Coordinates of the second point
Distance = √(X2 - X1)2
Formula:
X1, Y1 = Coordinates of the first point
X2, Y2 = Coordinates of the second point
Distance = √(X2 - X1)2 + (Y2 - Y1)2
Formula:
X1, Y1 Z1 = Coordinates of the first point
X2, Y2 Z2 = Coordinates of the second point
Distance = √(X2 - X1)2 + (Y2 - Y1)2 + (Z2 - Z1)2