fix some float/double jumble

This commit is contained in:
Seth Alves 2015-06-17 07:02:54 -07:00
parent 02d7aa30ab
commit 0ec7d3ded8
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ Mat4d EarthSunModel::evalWorldToGeoLocationMat(double longitude, double latitude
void EarthSunModel::updateWorldToSurface() const {
// Check if the final position is too close to the earth center ?
float absAltitude = _earthRadius + (double)_altitude;
float absAltitude = _earthRadius + _altitude;
if (absAltitude < 0.01f) {
absAltitude = 0.01f;
}

View file

@ -72,7 +72,7 @@ public:
protected:
float _scale = 1000.0f; //Km
double _earthRadius = 6360.0;
float _earthRadius = 6360.0;
Quat _surfaceOrientation;