UNPKG

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.

23 lines (22 loc) 1.76 kB
import AstronomicalObject from '../astronomicalObject/AstronomicalObject'; import { EclipticSphericalCoordinates, EquatorialSphericalCoordinates, RectangularCoordinates } from '../coordinates/types/CoordinateTypes'; import TimeOfInterest from '../time/TimeOfInterest'; import { ProperMotion } from './types/ProperMotionTypes'; export default class Star extends AstronomicalObject { private readonly equatorialCoords; private readonly properMotion; private readonly referenceEpoch; constructor(equatorialCoords: EquatorialSphericalCoordinates, toi?: TimeOfInterest, properMotion?: ProperMotion, referenceEpoch?: number); getHeliocentricEclipticSphericalJ2000Coordinates(): Promise<EclipticSphericalCoordinates>; getHeliocentricEclipticSphericalDateCoordinates(): Promise<EclipticSphericalCoordinates>; getHeliocentricEclipticRectangularJ2000Coordinates(): Promise<RectangularCoordinates>; getHeliocentricEclipticRectangularDateCoordinates(): Promise<RectangularCoordinates>; getGeocentricEclipticRectangularJ2000Coordinates(): Promise<RectangularCoordinates>; getGeocentricEclipticRectangularDateCoordinates(): Promise<RectangularCoordinates>; getGeocentricEclipticSphericalJ2000Coordinates(): Promise<EclipticSphericalCoordinates>; getGeocentricEclipticSphericalDateCoordinates(): Promise<EclipticSphericalCoordinates>; getGeocentricEquatorialSphericalJ2000Coordinates(): Promise<EquatorialSphericalCoordinates>; getGeocentricEquatorialSphericalDateCoordinates(): Promise<EquatorialSphericalCoordinates>; getApparentGeocentricEclipticSphericalCoordinates(): Promise<EclipticSphericalCoordinates>; getApparentGeocentricEquatorialSphericalCoordinates(): Promise<EquatorialSphericalCoordinates>; }