From bb6aef0a1159c2533d12f9720b2c968988fb7857 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 25 Oct 2007 23:50:57 +0300 Subject: [PATCH] Add comment --- src/latlon.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5