From 0a39314e55cb245e19508f8b154a909b4040fa64 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Tue, 13 Dec 2011 13:47:51 +0000 Subject: [PATCH] Corrected longitude range in ToGeodetic --- Eci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eci.cpp b/Eci.cpp index 2aeff9e..5a3d11e 100644 --- a/Eci.cpp +++ b/Eci.cpp @@ -65,7 +65,7 @@ CoordGeodetic Eci::ToGeodetic() const { // 0 >= lon < 360 // const double lon = Fmod2p(theta - date_.ToGreenwichSiderealTime()); // 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)); static const double e2 = kF * (2.0 - kF);