EquationOfTime.cpp   EquationOfTime.cpp 
skipping to change at line 219 skipping to change at line 219
conf->setValue("font_size", getFontSize()); conf->setValue("font_size", getFontSize());
conf->endGroup(); conf->endGroup();
} }
double EquationOfTime::getSolutionEquationOfTime(const double JDay) const double EquationOfTime::getSolutionEquationOfTime(const double JDay) const
{ {
StelCore* core = StelApp::getInstance().getCore(); StelCore* core = StelApp::getInstance().getCore();
double tau = (JDay - 2451545.0)/365250.0; double tau = (JDay - 2451545.0)/365250.0;
double sunMeanLongitude = 280.4664567 + tau*(360007.6892779 + tau*(0 .03032028 + tau*(1/49931 - tau*(1/15300 - tau/2000000)))); double sunMeanLongitude = 280.4664567 + tau*(360007.6892779 + tau*(0 .03032028 + tau*(1./49931. - tau*(1./15300. - tau/2000000.))));
// reduce the angle // reduce the angle
sunMeanLongitude = std::fmod(sunMeanLongitude, 360.); sunMeanLongitude = std::fmod(sunMeanLongitude, 360.);
// force it to be the positive remainder, so that 0 <= angle < 360 // force it to be the positive remainder, so that 0 <= angle < 360
sunMeanLongitude = std::fmod(sunMeanLongitude + 360., 360.); sunMeanLongitude = std::fmod(sunMeanLongitude + 360., 360.);
Vec3d pos = GETSTELMODULE(StelObjectMgr)->searchByName("Sun")->getEq uinoxEquatorialPos(core); Vec3d pos = GETSTELMODULE(StelObjectMgr)->searchByName("Sun")->getEq uinoxEquatorialPos(core);
double ra, dec; double ra, dec;
StelUtils::rectToSphe(&ra, &dec, pos); StelUtils::rectToSphe(&ra, &dec, pos);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/