[Kstars-devel] KDE_3_2_BRANCH: kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Tue Jan 27 19:25:53 CET 2004


CVS commit by pvicente: 

Fixed a bug when precessing from 1950.0 to any epoch different of J2000.
I just needed to recompute cosine and sine of RA and Dec once precession
from B1950 to J2000 was completed, so that precession from J2000 to the
target epoch was done correctly.

All the other cases: B1950 to J2000 or any epoch != B1950 to any epoch
worked fine.

CCMAIL:kstars-devel at kde.org


  M +3 -0      skypoint.cpp   1.20.2.1


--- kdeedu/kstars/kstars/skypoint.cpp  #1.20:1.20.2.1
@@ -256,4 +256,7 @@ void SkyPoint::precessFromAnyEpoch(long 
                 B1950ToJ2000();
                 jd0 = J2000;
+                RA.SinCos( sinRA, cosRA );
+                Dec.SinCos( sinDec, cosDec );
+
         }
 




More information about the Kstars-devel mailing list