Find a better name for the variable
This commit is contained in:
parent
158bd8f62b
commit
9372b9c7b3
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@ public class ApproximateTwilightTimeProvider extends CacheableTwilightTimeProvid
|
|||
double n2 = tan(latRad) * tan(declination);
|
||||
double hourAngle = acos(n1 - n2);
|
||||
|
||||
double hourAngleDeg = 4 * toDegrees(hourAngle);
|
||||
double longitudeEffect = 4 * toDegrees(hourAngle);
|
||||
|
||||
// sunrise = 720 - 4 * (coordinates.longitude + hourAngleDeg) - equationOfTime
|
||||
// sunset = 720 - 4 * (coordinates.longitude - hourAngleDeg) - equationOfTime
|
||||
double solarNoon = 720 - 4 * coordinates.longitude - equationOfTime;
|
||||
double sunrise = solarNoon - hourAngleDeg;
|
||||
double sunset = solarNoon + hourAngleDeg;
|
||||
double sunrise = solarNoon - longitudeEffect;
|
||||
double sunset = solarNoon + longitudeEffect;
|
||||
|
||||
return new Twilight(
|
||||
cache.date(),
|
||||
|
|
Loading…
Reference in a new issue