Calculation of distance between points
Calculation of distance between any two points on a plane in Cartesian (XY) coordinate system is quite simple. It is in demand in geodesy and physics, various applied directions of mathematics.
It's enough to define the coordinates of points x1,y1 x2,y2 and recall the Pythagorean theorem for calculating the hypotenuse of a right triangle. The legs of the triangle will be calculated as the difference in coordinates of the 2 points (final and initial) on the axis «X» - (x2−x1) and on the axis «Y» - (y2−y1). The distance between 2 points A and B will be calculated using the formula L = square root ((x2−x1)2+(y2−y1)2).