Reference
Pure coordinate conversions
import { … } from "@johnmorrisdotca/wakusei-planets/coordinates";
Exports
| Name | Kind | What it is |
|---|---|---|
CartesianAu | type | Right-handed Cartesian components in AU: x at longitude zero, y at 90 degrees, z north. |
cartesianToSpherical | function | Convert Cartesian to spherical. |
CoordinateContext | type | Scientific context. |
CoordinateFrame | type | Named axes. |
CoordinateObserver | type | Earth observer: degrees north/east; optional metres above the WGS 84 ellipsoid. |
CoordinateOrigin | type | Origin is preserved by every rotation; no observer translation is performed. |
EclipticCoordinates | type | Ecliptic angles, in degrees, in the named mean ecliptic frame. |
eclipticToEquatorial | function | Rotate a mean ecliptic direction into the matching mean equatorial frame. |
EquatorialCoordinates | type | Equatorial angles, in degrees (right ascension is never hours). |
equatorialToEcliptic | function | Inverse mean-equator rotation, retaining the same origin and epoch. |
equatorialToHorizontal | function | Rotate a mean equatorial-of-date direction to an observer's horizon (Meeus 12.4, 13.5–6). |
HorizontalCoordinates | type | Geometric horizontal direction. |
meanObliquity | function | Mean obliquity in degrees: IAU 1980 (Meeus 22.2), evaluated in TT. |
SphericalAu | type | Spherical coordinates: longitude [0,360), latitude [-90,90], radius in AU. |
sphericalToCartesian | function | Convert spherical to Cartesian, preserving origin, frame, epoch and geometric corrections. |