StarWrapper.hpp   StarWrapper.hpp 
skipping to change at line 85 skipping to change at line 85
const Star *s) : a(a), z(z), s(s) {;} const Star *s) : a(a), z(z), s(s) {;}
Vec3d getJ2000EquatorialPos(const StelCore* core) const Vec3d getJ2000EquatorialPos(const StelCore* core) const
{ {
static const double d2000 = 2451545.0; static const double d2000 = 2451545.0;
Vec3f v; Vec3f v;
s->getJ2000Pos(z, (M_PI/180.)*(0.0001/3600.) * ((core->getJD ay()-d2000)/365.25) / a->star_position_scale, v); s->getJ2000Pos(z, (M_PI/180.)*(0.0001/3600.) * ((core->getJD ay()-d2000)/365.25) / a->star_position_scale, v);
return Vec3d(v[0], v[1], v[2]); return Vec3d(v[0], v[1], v[2]);
} }
Vec3f getInfoColor(void) const Vec3f getInfoColor(void) const
{ {
return StelApp::getInstance().getVisionModeNight() ? Vec3f(0 .8, 0.2, 0.2) : StelSkyDrawer::indexToColor(s->bV); return StelApp::getInstance().getVisionModeNight() ? Vec3f(0 .8, 0.0, 0.0) : StelSkyDrawer::indexToColor(s->bV);
} }
float getVMagnitude(const StelCore* core, bool withExtinction=false) const float getVMagnitude(const StelCore* core, bool withExtinction=false) const
{ {
float extinctionMag=0.0; // track magnitude loss float extinctionMag=0.0; // track magnitude loss
if (withExtinction && core->getSkyDrawer()->getFlagHasAtmosphere ()) if (withExtinction && core->getSkyDrawer()->getFlagHasAtmosphere ())
{ {
double alt=getAltAzPosApparent(core)[2]; double alt=getAltAzPosApparent(core)[2];
core->getSkyDrawer()->getExtinction().forward(&alt, &extinct ionMag); core->getSkyDrawer()->getExtinction().forward(&alt, &extinct ionMag);
} }
 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/