Find a better name for the variable

This commit is contained in:
Minecon724 2024-09-24 19:51:42 +02:00
parent 158bd8f62b
commit 9372b9c7b3
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -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(),