Sun Position
object SunPosition
Provides utilities for determining the Sun geographic and celestial location.
Functions
Link copied to clipboard
fun celestialToGeographic(celestialLocation: SunPosition.CelestialLocation, instant: Instant): Location
Converts from celestial coordinates (declination and right ascension) to geographic coordinates (latitude, longitude) for a given julian date
Link copied to clipboard
Computes the julian date from a javascript date object
Link copied to clipboard
Computes the celestial location of the sun for a given julianDate
Link copied to clipboard
Computes the geographic location of the sun for a given date