diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-02-02 10:53:20 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-02-02 10:53:20 +0000 |
commit | 2d06e7d7c9e4b70e32f2d5dad2fa2fd30f810ebf (patch) | |
tree | 291ec8196fe4d4f484366501aff19e4010f898fb /lib | |
parent | 66697e5766d9d4ff63ad11b5971066b3ece7413b (diff) | |
download | perl-2d06e7d7c9e4b70e32f2d5dad2fa2fd30f810ebf.tar.gz |
Update Trig.pm from maint-5.005.
p4raw-id: //depot/cfgperl@2759
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Math/Trig.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Math/Trig.pm b/lib/Math/Trig.pm index b021739691..924286d204 100644 --- a/lib/Math/Trig.pm +++ b/lib/Math/Trig.pm @@ -385,11 +385,12 @@ defaults to radians. If you think geographically the I<theta> are longitudes: zero at the Greenwhich meridian, eastward positive, westward negative--and the -I<phi> are latitudes: zero at North Pole, northward positive, +I<phi> are latitudes: zero at the North Pole, northward positive, southward negative. B<NOTE>: this formula thinks in mathematics, not -geographically: the I<phi> 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<pi/2> (also known as 90 degrees). +geographically: the I<phi> 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<pi/2> (also known as 90 +degrees). $distance = great_circle_distance($lon0, pi/2 - $lat0, $lon1, pi/2 - $lat1, $rho); |