Fixed inversion of longitude specified in with FixedPosition planetographic

or planetocentric.
ver1_6_1
Chris Laurel 2008-09-08 22:29:43 +00:00
parent 5ad634b796
commit b3ec57b12e
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ CreateFixedPosition(Hash* trajData, const Selection& centralObject, bool usePlan
// TODO: Need function to calculate planetographic coordinates
// TODO: Change planetocentricToCartesian so that 180 degree offset isn't required
position = centralObject.body()->planetocentricToCartesian(180.0 - v.x, v.y, v.z);
position = centralObject.body()->planetocentricToCartesian(180.0 + v.x, v.y, v.z);
}
else if (trajData->getVector("Planetocentric", v))
{
@ -257,7 +257,7 @@ CreateFixedPosition(Hash* trajData, const Selection& centralObject, bool usePlan
}
// TODO: Change planetocentricToCartesian so that 180 degree offset isn't required
position = centralObject.body()->planetocentricToCartesian(180.0 - v.x, v.y, v.z);
position = centralObject.body()->planetocentricToCartesian(180.0 + v.x, v.y, v.z);
}
else
{