Corrected longitude range in ToGeodetic

feature/19
Daniel Warner 2011-12-13 13:47:51 +00:00
parent f659c173bf
commit 0a39314e55
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ CoordGeodetic Eci::ToGeodetic() const {
// 0 >= lon < 360 // 0 >= lon < 360
// const double lon = Fmod2p(theta - date_.ToGreenwichSiderealTime()); // const double lon = Fmod2p(theta - date_.ToGreenwichSiderealTime());
// 180 >= lon < 180 // 180 >= lon < 180
const double lon = fmod(theta - date_.ToGreenwichSiderealTime(), kTWOPI); const double lon = fmod(theta - date_.ToGreenwichSiderealTime(), kPI);
const double r = sqrt((position_.x * position_.x) + (position_.y * position_.y)); const double r = sqrt((position_.x * position_.x) + (position_.y * position_.y));
static const double e2 = kF * (2.0 - kF); static const double e2 = kF * (2.0 - kF);