[Kstars-devel] branches/KDE/3.5/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sat Dec 22 06:29:08 CET 2007


SVN commit 751532 by harris:

Fixing bug in KSPlanetBase::setRearth() that caused the incorrect
distance to be computed.  I needed to use the heliocentric ecliptic
coordinates, not the geocentric.

This fixes Bug #147410

BUG: 147410
CCMAIL: kstars-devel at kde.org



 M  +2 -2      ksplanetbase.cpp  


--- branches/KDE/3.5/kdeedu/kstars/kstars/ksplanetbase.cpp #751531:751532
@@ -147,8 +147,8 @@
 	double eY = Earth->rsun()*cosB0*sinL0;
 	double eZ = Earth->rsun()*sinB0;
 
-	ecLong()->SinCos( sinL, cosL );
-	ecLat()->SinCos( sinB, cosB );
+	helEcLong()->SinCos( sinL, cosL );
+	helEcLat()->SinCos( sinB, cosB );
 	x = rsun()*cosB*cosL - eX;
 	y = rsun()*cosB*sinL - eY;
 	z = rsun()*sinB - eZ;


More information about the Kstars-devel mailing list