On 12 Jun 2015, at 23:26, Anton Lundin <[email protected]> wrote: Anton,
> + // Earth radious is about 111.5 km where i live
> + return sqrt(lat1.udeg*lat2.udeg + lon1.udeg*lon2.udeg) / 10;
please at least multiply the longitudes with sin(90degrees - latitude) as
otherwise you underestimate the distance at the equator and overestimate the
distance closer to the poles.
Best
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
