Releases: shred/commons-suncalc
Releases · shred/commons-suncalc
v3.11
v3.10
v3.9
MoonIllumination
now also returns the elongation (visible distance between sun and moon), moon radius (visible radius of the moon disc), and crescent width (visible width of the crescent). Thanks to Hussam Almulhim for the feature request and for testing.MoonIllumination
now accepts an optional geolocation. If set, the result will be topocentric. If unset, the result will be geocentric as before (so there is no need to migrate your code).height()
andheightFt()
are now calledelevation()
andelevationFt()
, because that's the correct term for the observer's altitude. The old methods are marked as deprecated, but are still functional. Please use the new ones.- If a geolocation is required for proper results, it is required to be set now, otherwise
execute()
will throw an exception. If you want to emulate the old behavior (for whatever reason), you can use.at(0.0, 0.0)
to set Null Island again.
Please also see the migration guide for details.
v3.8
v3.7
MoonIllumination.getAngle()
was off by several degrees under certain circumstances. (@amoledwatchfaces)
v2.14
MoonIllumination.getAngle()
was off by several degrees under certain circumstances. (@amoledwatchfaces)
v3.6
- Fixed a very old bug in
MoonPosition.getParallacticAngle()
that gave completely wrong results. (@amoledwatchfaces)
v2.13
Backport from v3.6:
- Fixed a very old bug in
MoonPosition.getParallacticAngle()
that gave completely wrong results. (@amoledwatchfaces)
v3.5
- Add moon phase constants for
WAXING_CRESCENT
,WAXING_GIBBOUS
,WANING_GIBBOUS
,WANING_CRESCENT
. (Thanks to @mslalith for the pointer.) - New method
MoonPhase.Phase.toPhase()
converts a moon phase angle to the closest constant. - New method
MoonIllumination.getClosestPhase()
returns the closest moon phase constant of an illumination result.
v2.12
Backports from v3.5:
- Add moon phase constants for
WAXING_CRESCENT
,WAXING_GIBBOUS
,WANING_GIBBOUS
,WANING_CRESCENT
. (Thanks to @mslalith for the pointer.) - New method
MoonPhase.Phase.toPhase()
converts a moon phase angle to the closest constant. - New method
MoonIllumination.getClosestPhase()
returns the closest moon phase constant of an illumination result.