The shortest path distance is a straight line. YA means the y-coordinate of point A. Draw a right-angled triangle with the line formed by the points the distance between the two points can be calculated by finding the horizontal x 2 - x 1 and vertical distances y 2 - y 1.
This tutorial shows how the distance formula is used to find the distance between two points in a x y coordinate systemLearn Math Tutorials Bookstore http.
The distance is the same in either direction going from point 1 to point 2 or vice versa. The distance between two points AxA yA A x A y A and BxB yB B x B y B in two-dimensional Cartesian coordinate plane is the length of the segment connecting them AB dA B xB xA2 yB yA2 A B d A B x B - x A 2 y B - y A 2. How to find distance between two points. D x 2 x 1 2 y 2 y 1 2.