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 · The same, with suncalc 1's conventions (radians, azimuth from south)

LegacyMoonPositiontype

The Moon in a place's sky: the LegacyPosition, the distance in kilometres and the parallactic angle in radians.

Import it

import type { LegacyMoonPosition } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";

Definition

interface LegacyMoonPosition extends LegacyPosition {
    distance: number;
    parallacticAngle: number;
}

Members

NameTypeDescription
distancenumber
parallacticAnglenumber
azimuthnumber
altitudenumber

Examples

import { getMoonPosition, type LegacyMoonPosition } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";

const p: LegacyMoonPosition = getMoonPosition(new Date(Date.UTC(2026, 10, 7, 12)), 35.7, 139.7);
console.log(p.distance > 350000);
true

What it prints (run when this page was built)

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