[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Sat Jan 12 16:39:24 CET 2008
SVN commit 760414 by harris:
Compute angular size of planets, not just the sun and moon
Backporting to 4.0 branch.
CCMAIL: kstars-devel at kde.org
M +0 -1 ksmoon.cpp
M +1 -0 ksplanetbase.cpp
M +0 -3 kssun.cpp
--- trunk/KDE/kdeedu/kstars/kstars/ksmoon.cpp #760413:760414
@@ -174,7 +174,6 @@
setEcLong( ( L + DegtoRad*sumL/1000000.0 ) * 180./dms::PI ); //convert radians to degrees
setEcLat( ( DegtoRad*sumB/1000000.0 ) * 180./dms::PI );
Rearth = ( 385000.56 + sumR/1000.0 )/AU_KM; //distance from Earth, in AU
- setAngularSize( asin(physicalSize()/Rearth/AU_KM)*60.*180./dms::PI ); //angular size in arcmin
EclipticToEquatorial( num->obliquity() );
--- trunk/KDE/kdeedu/kstars/kstars/ksplanetbase.cpp #760413:760414
@@ -74,6 +74,7 @@
void KSPlanetBase::findPosition( const KSNumbers *num, const dms *lat, const dms *LST, const KSPlanetBase *Earth ) {
findGeocentricPosition( num, Earth ); //private function, reimplemented in each subclass
+ setAngularSize( asin(physicalSize()/Rearth/AU_KM)*60.*180./dms::PI ); //angular size in arcmin
if ( lat && LST )
localizeCoords( num, lat, LST ); //correct for figure-of-the-Earth
--- trunk/KDE/kdeedu/kstars/kstars/kssun.cpp #760413:760414
@@ -133,9 +133,6 @@
//Determine the position angle
findPA( num );
- //Set the angular size in arcmin
- setAngularSize( asin(physicalSize()/Rearth/AU_KM)*60.*180./dms::PI );
-
return true;
}
More information about the Kstars-devel
mailing list