Reference · Where the Sun, Moon and planets are for a date, in two scales, with the camera maths
SpacePlanettype
One of the planets in SPACE_PLANETS.
Import it
import type { SpacePlanet } from "@johnmorrisdotca/wakusei-planets/space";
Definition
type SpacePlanet = (typeof SPACE_PLANETS)[number];
Examples
import { planetOrbit, type SpacePlanet } from "@johnmorrisdotca/wakusei-planets/space";
const planet: SpacePlanet = "mars";
console.log(planetOrbit(planet, Date.UTC(2026, 10, 2), 8).length);9What it prints (run when this page was built)