Angle

sealed interface Angle : SolarEventType

a type representing a Solar Angle. A solar angle is essentially a position of the sun in the sky in terms of the angle of altitude. Since the sun rises and falls many solar angles have two potential meanings either their dusk or dawn version. Those types are represented below.

Inheritors

Types

Link copied to clipboard
sealed interface Dawn : SolarEventType.Angle

A solar angle where the sun is rising.

Link copied to clipboard
sealed interface Dusk : SolarEventType.Angle

A solar angle where the sun is setting.

Properties

Link copied to clipboard
abstract val angle: Double

Returns the sun's angle at the twilight position, in degrees.