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 · Facts, line drawings and positions

heliocentricfunction

A planet's or dwarf planet's position in the Sun's frame (J2000 ecliptic, astronomical units) at a time: Mercury to Neptune from the VSOP87B series, and Pluto and the other dwarf planets from tables fitted to Horizons (each within a few arc-seconds or better, see the accuracy guide; outside a table's years a dwarf planet falls back to the osculating elements of one epoch from JPL's Small-Body Database).

Import it

import { heliocentric } from "@johnmorrisdotca/wakusei-planets";

Definition

function heliocentric(planet: HostId, ms: number): Vec3

Parameters

NameTypeDescription
planetHostId

The planet's or dwarf planet's name.

msnumber

The instant, in milliseconds since 1970 (UTC).

Returns

Vec3

The position as x, y, z in au.

Examples

import { heliocentric } from "@johnmorrisdotca/wakusei-planets";

const [x, y, z] = heliocentric("earth", Date.UTC(2026, 0, 3));
console.log(Math.hypot(x, y, z).toFixed(3));
0.983

What it prints (run when this page was built)

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