Converted fgFLIGHT to a class.

Tweaks for Sun portability.
This commit is contained in:
curt
2009-09-15 18:31:32 +02:00
committed by Tim Moore
parent ed870aac76
commit 46f79f17c8
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -187,8 +187,9 @@ void Moon::updatePosition(fgTIME *t, Star *ourSun)
// First calculates the moon's parrallax, that is, the apparent size of the
// (equatorial) radius of the earth, as seen from the moon
mpar = asin ( 1 / r);
gclat = FG_Latitude - 0.003358 * sin (2 * DEG_TO_RAD * FG_Latitude);
rho = 0.99883 + 0.00167 * cos(2 * DEG_TO_RAD * FG_Latitude);
gclat = f->get_Latitude() - 0.003358 *
sin (2 * DEG_TO_RAD * f->get_Latitude() );
rho = 0.99883 + 0.00167 * cos(2 * DEG_TO_RAD * f->get_Latitude());
if (geoRa < 0)
geoRa += (2*FG_PI);