mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-26 18:33:42 -04:00
Starting to add support for calculating the intensity of lunar eclipses and solar eclipses in terms of "obscuration". This commit adds calculation of obscuration for lunar eclipses in C/C++. The structure returned by SearchLunarEclipse and NextLunarEclipse now includes an `obscuration` field whose value is in the range [0, 1], indicating what fraction of the Moon's apparent disc is covered by the Earth's umbra at the eclipse's peak.