closest Moon Phase
Takes an angle and finds the closest moon phase to that angle. This can return phases like New Moon which only last for an instant in time. If you are attempting to get the "state" of the moon the lunarPhase method is technically correct.
Return
Closest LunarPhase that is matching that angle. Includes LunarEvent.PhaseEvent.NewMoon, LunarEvent.PhaseEvent.FirstQuarter, LunarEvent.PhaseEvent.FullMoon, and LunarEvent.PhaseEvent.LastQuarter.
Parameters
angle
Angle of the moon phase. Will be normalized into the range of 0..<360.
See also
For sample angles