by sheetal Sun Mar 16, 2008 6:48 pm
For calculating the distance between two points, we use the Pythagorean theorem. The length of the diagonal gives the distance between two points.
For example if the two points are (1,3) and (7,-5), then horizontal distance = (7-1) = 6
The vertical distance = (-5-3) = -8. The negative sign doesn't matter as the change in y coordinate = 8.
The length of the diagonal will give the distance between the two points.
Use Pythagorean theorem to calculate the length (L):
(L^2) = (6^2) + (8^2)
=> L = 10.
Similarly if one of the points lies on the centre (0,0), distance between lets say (0,0) and (3,-4) will be
(L^2) = (3^2) + (4^2)
=> L = 5.