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.