[Kstars-devel] KDE_3_2_BRANCH: kdeedu/kstars/kstars
Pablo de Vicente
p.devicente at wanadoo.es
Thu Apr 22 12:20:12 CEST 2004
CVS commit by pvicente:
These changes are necessary to fix a bug in the Solar system viewer which shows in wrong
position the planets, mainly the inner ones, since they are depicted according to their
ecliptic geocentric coordinates and not according to their heliocentric ones.
The change here is minor. Instead of using "pName[i] )->ecLong()->Degrees()" we use
"pName[i] )->helEcLong()->Degrees()" which returns the heliocentric ecliptic coordinates
referred to the mean equinox of the date.
FIX in the BRANCH
CCMAIL: kstars-devel at kde.org
M +1 -1 planetviewer.cpp 1.9.2.1
--- kdeedu/kstars/kstars/planetviewer.cpp #1.9:1.9.2.1
@@ -98,5 +98,5 @@ void PlanetViewer::initPlotObjects() {
for ( unsigned int i=0; i<9; ++i ) {
- elong[i] = dms( PCat->findByName( pName[i] )->ecLong()->Degrees() );
+ elong[i] = dms( PCat->findByName( pName[i] )->helEcLong()->Degrees() );
planet[i] = new KPlotObject( pName[i], pColor[i], KPlotObject::POINTS, 6, KPlotObject::CIRCLE );
planetLabel[i] = new KPlotObject( pName[i], pColor[i], KPlotObject::LABEL );
More information about the Kstars-devel
mailing list