Reverse chronological search: moon phase and altitude
The following functions now allow searching backward or forward in time by passing in a negative or positive value for their limitDays
parameter:
- SearchMoonPhase
- SearchRiseSet
- SearchAltitude
The following function has added a new integer parameter direction
that can be passed a positive value to search forward in time, or a negative value to search backward in time:
- SearchHourAngle
To preserve backward compatibility, the C version of this function has been renamed SearchHourAngleEx, and SearchHourAngle is now a macro that expands to the equivalent call to SearchHourAngleEx with the extra argument +1.
In the other languages, which all support default parameter values, the direction
parameter has a default value of +1, which preserves the original behavior of searching forward in time.
There were also minor fixes to SearchRiseSet and SearchAltitude where limitDays
was not always strictly limiting the range of the search. Now, any time an altitude event is found that goes beyond limitDays
, the search will fail as specified by the documentation.