posted by Rusty .
How do you find the distance of 2 points?
consider a square grid where the points are opposite corners of a diagonal. Then use the Pythagorean Theorem to find the length of the diagonal.
If the horizontal sides of the rectangle are a and b, then the distance is