astronomy-bundle
Version:
Bundle for astronomical calculations such as position of moon, sun and planets, sunrise, sunset or solar eclipses. Most of the calculations are based on Jean Meeus 'Astronomical Algorithms' book and the VSOP87 theory.
18 lines (17 loc) • 592 B
TypeScript
export default class Location {
readonly lat: number;
readonly lon: number;
readonly elevation: number;
private readonly location;
private prefixesNorthSouth;
private prefixesEastWest;
constructor(lat: number, lon: number, elevation?: number);
getLatitude(): number;
getLongitude(): number;
getLatitudeInDegreeMinutes(): string;
getLongitudeInDegreeMinutes(): string;
getLatitudeInDegreeMinutesSeconds(): string;
getLongitudeInDegreeMinutesSeconds(): string;
getElevation(): number;
getDistanceToInKm(location: Location): number;
}