calculateSolarState

fun Instant.calculateSolarState(location: Pair<Double, Double>, height: Double = 0.0): SolarState

Calculates the SolarState for a given Instant in time

Receiver

Instant in time to calculate the SolarState for

Parameters

location

Pair where the Pair.first value is the latitude in degrees and the Pair.second value is the longitude in degrees

height

The height of the observer in meters


fun Instant.calculateSolarState(latitude: Double, longitude: Double, height: Double = 0.0): SolarState

Calculates the SolarState for a given Instant in time

Receiver

Instant in time to calculate the SolarState for

Parameters

latitude

The latitude in degrees

longitude

The longitude in degrees

height

The height of the observer in meters