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.GoldenHour and LightState.BlueHour 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 true altitude of the center of the sun above the horizon.

Link copied to clipboard

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

Functions

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

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

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String