SolarState

Single class containing all the information Kastro can calculate about Sol for a given instant of time. Contains the result of multiple calculations.

Properties

Link copied to clipboard

The visible altitude of the center of the sun above the horizon.

Link copied to clipboard

The atmospheric refraction of the Sun's light in degrees

Link copied to clipboard

Sun azimuth, in degrees, north-based.

Link copied to clipboard

Sun's distance, in kilometers.

Link copied to clipboard

Whether the Sun is rising or setting.

Link copied to clipboard
Link copied to clipboard

The current active LightStates. There can be more than one active LightState at a time. For instance, LightState.GoldenHourDusk and LightState.BlueHourDusk intersect a bit, so it's possible to have both of those or neither. Can be empty.

Link copied to clipboard

The parallax, in degrees.

Link copied to clipboard

The current SolarPhase. There can be only one active SolarPhase at a given time

Link copied to clipboard

The true altitude of the center of the sun above the horizon.

Functions

Link copied to clipboard
fun altitudeAt(angularPosition: Double): Double

Obtains the altitude of a particular position of the sun above the horizon.