Subject: | great_circle_waypoint |
Date: | Thu, 28 Oct 2010 12:01:51 +0100 (BST) |
To: | bug-Math-Complex [...] rt.cpan.org |
From: | Chris Heys <christopher_heys [...] yahoo.co.uk> |
Dear CPAN
About Math::Trig. I thank the author of great_circle_waypoint but I am finding it difficult to use. My understanding is that
$phi = 1.571
corresponds to the Equator. Here are two points that lie either side of the Equator, equidistant from it and on the same line of longitude :
($theta0, $phi0) = (1, (1.571 + 1))
($theta1, $phi1) = (1, (1.571 - 1))
The expectation was that
($thetai, $phii) = great_circle_waypoint($theta0, $phi0, $theta1, $phi1, 0.5);
would give me the answer
($thetai, $phii) = (1, 1.571)
but in fact I get
($thetai, $phii) = (1, 0)
I am running Perl 5.8.8 under Windows XP