The distance from one point to another is the distance traveled by a light beam between them.
If you have the coordinates of the 2 points, then the distance between them is
√ of [ (the difference in their x-values)² + (the difference in their y-values)² ]