lunar Phase
Takes an angle and finds the current phase of the moon based on that angle. This will only return intermediate phases like Waning Crescent and not Primary phases like Full Moon as those technically only occur for an instant in time. If you were trying to return the Moon's current phase as a state this is the "technically" correct way to do that. Sometimes we refer to the full Moon as a range of time but there's no agreed upon standard for that so if you wanted that behavior you would need to write your own function.
Return
The current LunarPhase.Intermediate
Parameters
angle
Angle of the moon phase. Will be normalized into the range of 0..<360.
See also
For angle ranges