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
parent
d4d915b027
commit
cfa8300ff1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue