StelObserver.cpp   StelObserver.cpp
skipping to change at line 208 skipping to change at line 208
// TODO: Figure out how to keep continuity in sky as reach poles // TODO: Figure out how to keep continuity in sky as reach poles
// otherwise sky jumps in rotation when reach poles in equatorial mo de // otherwise sky jumps in rotation when reach poles in equatorial mo de
// This is a kludge // This is a kludge
if( lat > 90.0 ) lat = 90.0; if( lat > 90.0 ) lat = 90.0;
if( lat < -90.0 ) lat = -90.0; if( lat < -90.0 ) lat = -90.0;
// Include a DeltaT correction. Sidereal time and longitude here are both in degrees, but DeltaT in seconds of time. // Include a DeltaT correction. Sidereal time and longitude here are both in degrees, but DeltaT in seconds of time.
// 360 degrees = 24hrs; 15 degrees = 1hr = 3600s; 1 degree = 240s // 360 degrees = 24hrs; 15 degrees = 1hr = 3600s; 1 degree = 240s
// Apply DeltaT correction only for Earth // Apply DeltaT correction only for Earth
double deltaT = 0.; double deltaT = 0.;
if (getHomePlanet()->getEnglishName()=="Earth") if (getHomePlanet()->getEnglishName()=="Earth")
deltaT = Stel.; deltaT = StelApp::getInstance().getCore()->getDeltaT(jd)/240 .;
return Mat4d::zrotation((getHomePlanet()->getSiderealTime(jd)+curren tLocation.longitude-deltaT)*M_PI/180.) return Mat4d::zrotation((getHomePlanet()->getSiderealTime(jd)+curren tLocation.longitude-deltaT)*M_PI/180.)
* Mat4d::yrotation((90.-lat)*M_PI/180.); * Mat4d::yrotation((90.-lat)*M_PI/180.);
} }
Mat4d StelObserver::getRotEquatorialToVsop87(void) const Mat4d StelObserver::getRotEquatorialToVsop87(void) const
{ {
return getHomePlanet()->getRotEquatorialToVsop87(); return getHomePlanet()->getRotEquatorialToVsop87();
} }
SpaceShipObserver::SpaceShipObserver(const StelLocation& startLoc, const St elLocation& target, double atransitSeconds) : StelObserver(startLoc), SpaceShipObserver::SpaceShipObserver(const StelLocation& startLoc, const St elLocation& target, double atransitSeconds) : StelObserver(startLoc),
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/