Reference · Pure coordinate conversions
eclipticToEquatorialfunction
Rotate a mean ecliptic direction into the matching mean equatorial frame. No precession between epochs, nutation, aberration or light-time is added.
Import it
import { eclipticToEquatorial } from "@johnmorrisdotca/wakusei-planets/coordinates";
Definition
function eclipticToEquatorial(value: EclipticCoordinates): EquatorialCoordinates
Parameters
| Name | Type | Description |
|---|---|---|
value | EclipticCoordinates | Coordinates with explicit origin, frame, epoch and geometric corrections. |
Returns
EquatorialCoordinates
Right ascension and declination in the matching mean equatorial frame.
Examples
import { eclipticToEquatorial } from "@johnmorrisdotca/wakusei-planets/coordinates";
console.log(eclipticToEquatorial({ origin: "geocentric", frame: "eclipticJ2000", epoch: "J2000", corrections: "geometric", eclipticLongitude: 90, eclipticLatitude: 0 }));{
origin: 'geocentric',
frame: 'equatorialJ2000',
epoch: 'J2000',
corrections: 'geometric',
rightAscension: 90,
declination: 23.439291111111114
}What it prints (run when this page was built)