From 0ec7d3ded82801439cabb6bc918a86e6d021b0ae Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 17 Jun 2015 07:02:54 -0700 Subject: [PATCH] fix some float/double jumble --- libraries/model/src/model/Stage.cpp | 2 +- libraries/model/src/model/Stage.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/model/src/model/Stage.cpp b/libraries/model/src/model/Stage.cpp index 4d75df8596..f328cb9884 100644 --- a/libraries/model/src/model/Stage.cpp +++ b/libraries/model/src/model/Stage.cpp @@ -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; } diff --git a/libraries/model/src/model/Stage.h b/libraries/model/src/model/Stage.h index dfcb73418d..8575626821 100644 --- a/libraries/model/src/model/Stage.h +++ b/libraries/model/src/model/Stage.h @@ -72,7 +72,7 @@ public: protected: float _scale = 1000.0f; //Km - double _earthRadius = 6360.0; + float _earthRadius = 6360.0; Quat _surfaceOrientation;