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

stopPlaceAufunction

Where a body is in the Sun's frame at an instant, in astronomical units. The Sun is the origin. A moon is its parent plus its offset.

Import it

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

Definition

function stopPlaceAu(id: BodyId, ms: number): Vec3

Parameters

NameTypeDescription
idBodyId

The body's name.

msnumber

The instant, in milliseconds since 1970.

Returns

Vec3

The position as x, y, z in au.

Examples

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

const [x, y, z] = stopPlaceAu("mars", Date.UTC(2026, 10, 2));
console.log(Math.hypot(x, y, z).toFixed(3));
1.595

What it prints (run when this page was built)

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