The distance between any two points is the length or distance of the line segment joining the points. There is only one line that is passing through two points. So, the distance between two points can be obtained by detecting the length of this line segment joining these two points. The distance between two points using the given coordinates can be obtained by applying the distance formula.