Fixed bug 1938559: Goto Object menu longitude is wrong by 180 deg

When the observer reference frames were rewritten in terms of ssc reference frames, an extra 180 rotation was eliminated from the BodyFixed (formerly 'planetographic') frame. I'd forgotten to remove a now unncessary correction in gotoSelectionLongLat. Simply getting rid of the extra -PI fixes the bug.
ver1_6_1
Chris Laurel 2008-04-10 03:37:43 +00:00
parent d4d915b027
commit cfa8300ff1
1 changed files with 1 additions and 1 deletions

View File

@ -1242,7 +1242,7 @@ void Observer::gotoSelectionLongLat(const Selection& selection,
if (!selection.empty())
{
double phi = -latitude + PI / 2;
double theta = longitude - PI;
double theta = longitude;
double x = cos(theta) * sin(phi);
double y = cos(phi);
double z = -sin(theta) * sin(phi);