Skip to content

v3.9

Compare
Choose a tag to compare
@shred shred released this 06 Feb 15:59
· 10 commits to master since this release
68de05d
  • 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() and heightFt() are now called elevation() and elevationFt(), 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.