From: Kaj-Michael Lang Date: Thu, 25 Oct 2007 20:50:57 +0000 (+0300) Subject: Add comment X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb6aef0a1159c2533d12f9720b2c968988fb7857;p=mapper Add comment --- diff --git a/src/latlon.c b/src/latlon.c index 612da89..a9e0beb 100644 --- a/src/latlon.c +++ b/src/latlon.c @@ -83,6 +83,10 @@ a=(slat * slat) + (cos(lat1) * cos(lat2) * slon * slon); return ((2.f * atan2(sqrt(a), sqrt(1.f - a))) * EARTH_RADIUS); } +/** + * Calculate course from lat1,lon1 to lat2,lon2 + * + */ gdouble calculate_course(gdouble lat1, gdouble lon1, gdouble lat2, gdouble lon2) {