File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,9 @@ double StelObserver::getDistanceFromCenter(void) const
208
208
const double a=getHomePlanet ()->getRadius ();
209
209
const double bByA = getHomePlanet ()->getOneMinusOblateness (); // b/a;
210
210
211
- if (fabs (currentLocation.latitude )>=89.9 ) // avoid tan(90) issues.
212
- return a * bByA;
211
+ // Details: https://github.com/Stellarium/stellarium/issues/391
212
+ // if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
213
+ // return a * bByA;
213
214
214
215
const double latRad=currentLocation.latitude *(M_PI/180.0 );
215
216
const double u = atan ( bByA * tan (latRad));
@@ -237,8 +238,9 @@ Vec3d StelObserver::getTopographicOffsetFromCenter(void) const
237
238
const double a=getHomePlanet ()->getRadius ();
238
239
const double bByA = getHomePlanet ()->getOneMinusOblateness (); // b/a;
239
240
240
- if (fabs (currentLocation.latitude )>=89.9 ) // avoid tan(90) issues.
241
- return a * bByA;
241
+ // Details: https://github.com/Stellarium/stellarium/issues/391
242
+ // if (fabs(currentLocation.latitude)>=89.9) // avoid tan(90) issues.
243
+ // return a * bByA;
242
244
243
245
const double latRad=currentLocation.latitude *(M_PI/180.0 );
244
246
const double u = atan ( bByA * tan (latRad));
You can’t perform that action at this time.
0 commit comments