Maths Tutorials: Distance Calculation formula using the Pythagorean Theorem
On a two dimensional chart the distance between two points can be calculated using the Pythagorean Theorem, used in geometry to calculate the missing side of a triangle that does not form a rectangle corner. Here is an example of the formula, using the two sets of the x and y coordinates:
d = √(x2 - x1) ² + (y2 - y1)²
To sum up, distance equals the square root of x2 minus x1 squared plus y2 minus y1 squared. That is the square root of both those calculations, not just the first bracket. Also note that x1 and y1 are the left most coordinates, while x2 and y2 are the right side coordinates.