Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Pure coordinate conversions

CartesianAutype

Right-handed Cartesian components in AU: x at longitude zero, y at 90 degrees, z north.

Import it

import type { CartesianAu } from "@johnmorrisdotca/wakusei-planets/coordinates";

Definition

interface CartesianAu extends CoordinateContext {
    xAu: number;
    yAu: number;
    zAu: number;
}

Members

NameTypeDescription
xAunumber
yAunumber
zAunumber
originCoordinateOrigin
frameCoordinateFrame
epochnumber | "J2000"
corrections"geometric"

Examples

import { sphericalToCartesian, type CartesianAu } from "@johnmorrisdotca/wakusei-planets/coordinates";
const value: CartesianAu = sphericalToCartesian({ origin: "heliocentric", frame: "eclipticJ2000", epoch: "J2000", corrections: "geometric", longitude: 90, latitude: 0, distanceAu: 1 });
console.log(value);
{
  origin: 'heliocentric',
  frame: 'eclipticJ2000',
  epoch: 'J2000',
  corrections: 'geometric',
  xAu: 6.123233995736766e-17,
  yAu: 1,
  zAu: 0
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.