SunZenith

public enum SunZenith : Double

Sun Zenith is used to describe the angle of the sun relative to the surface of earth for calculations involving sun phases.

  • Official zenith for sunrise and sunset. Occurs when the sun goes below or rises above the horizon

    Declaration

    Swift

    case official = 90.888888
  • Occurs when the sun dips 6 degrees below the horizon. During civil twilight, the atmosphere reflects enough light to allow outdoor activities.

    Declaration

    Swift

    case civil = 96
  • Occurs when the sun dips 12 degrees below the horizon. The horizon is generally still visable, but many of the brighter stars are visible during nautical twilight (between civil and nautical sunset). This enables navigation by stars at sea and is the namesake for it.

    Declaration

    Swift

    case nautical = 102
  • Occurs when the sun dips 18 degrees below the horizon. Often hard to differentiate between astronomical twilight and night but astronomers often have difficulty seeing fainter stars during this time. Thus astronomical twilight.

    Declaration

    Swift

    case astronomical = 108