calculateLunarState

fun Instant.calculateLunarState(latitude: Double, longitude: Double): LunarState

For a given time calculate the LunarState for a relative position. LunarState is a class containing the results of multiple calculations. Invoking this function provides maximum information about the moon for a given time/location. Therefore, this runs calculations requiring location and not requiring location, so you must have location to invoke.

Receiver

The time you wish to calculate LunarState for

Parameters

latitude

The longitude in degrees

longitude

The longitude in degrees


fun Instant.calculateLunarState(location: Pair<Double, Double>): LunarState

For a given time calculate the LunarState for a relative position. LunarState is a class containing the results of multiple calculations. Invoking this function provides maximum information about the moon for a given time/location. Therefore, this runs calculations requiring location and not requiring location, so you must have location to invoke.

Receiver

The time you wish to calculate LunarState for

Parameters

location

A pair where the first value represents latitude and the second longitude both in degrees.