Wasn't it sameer hassan who wrote:

>/*
>protected double distance(double pX, double pY) {
>               double dx=this.x - pX;
>               double dy=this.y - pY;
>               double distance=Math.sqrt(dx * dx + dy * dy);
>               return distance;
>       }
>*/
>which gives me the direct distance between two points

But returns a result measured in arbitrary "degrees". The length of a 
degree of latitude is constant (if you assume a spherical Earth) at 
about 55.6km. However, a degree of longitude varies from being about 
55.6km at the equator to zero at the pole. A "degree" in an arbitrary 
direction varies between a degree of latitude and a a degree of 
longitude at the same location, depending on the bearing.

So, basically, the result is useless unless you're on the equator.

-- 
Mike Williams
http://econym.org.uk/gmap



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to