From: Jarkko Hietaniemi Date: Tue, 2 Feb 1999 10:53:20 +0000 (+0000) Subject: Update Trig.pm from maint-5.005. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d06e7d7c9e4b70e32f2d5dad2fa2fd30f810ebf;p=p5sagit%2Fp5-mst-13.2.git Update Trig.pm from maint-5.005. p4raw-id: //depot/cfgperl@2759 --- diff --git a/lib/Math/Trig.pm b/lib/Math/Trig.pm index b021739..924286d 100644 --- a/lib/Math/Trig.pm +++ b/lib/Math/Trig.pm @@ -385,11 +385,12 @@ defaults to radians. If you think geographically the I are longitudes: zero at the Greenwhich meridian, eastward positive, westward negative--and the -I are latitudes: zero at North Pole, northward positive, +I are latitudes: zero at the North Pole, northward positive, southward negative. B: this formula thinks in mathematics, not -geographically: the I zero is at the Nort Pole, not on the -west coast of Africa (Bay of Guinea). You need to subtract your -geographical coordinates from I (also known as 90 degrees). +geographically: the I zero is at the North Pole, not at the +Equator on the west coast of Africa (Bay of Guinea). You need to +subtract your geographical coordinates from I (also known as 90 +degrees). $distance = great_circle_distance($lon0, pi/2 - $lat0, $lon1, pi/2 - $lat1, $rho);