SunPosition

Provides utilities for determining the Sun geographic and celestial location.

Types

Link copied to clipboard
class CelestialLocation(val declination: Angle, val rightAscension: Angle)

Functions

Link copied to clipboard

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