D sqrt d_ew d_ew d_ns d_ns You can refine this method for more exacting tasks but this should be good enough for comparing distances. Two squared that is four plus nine squared is 81. D x 2 x 1 2 y 2 y 1 2.
The distance formula is based on the Pythagorean Theorem.
How to Use Any Distance. How to Use Any Distance. Using pythagorean theorem to find distance between two points The Pythagorean Theorem In a right triangle the sum of the squares of the lengths of the legs is equal to the square of the length of the hypotenuse. Vertical NS distance is easier.