[Kstars-devel] kdeedu/kstars/kstars

Pablo de Vicente p.devicente at wanadoo.es
Tue Jan 27 19:29:19 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.21


--- kdeedu/kstars/kstars/skypoint.cpp  #1.20:1.21
@@ -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