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 · Where the Sun, Moon and planets are for a date, in two scales, with the camera maths

placeMoonfunction

The Moon, from the Earth's centre.

Import it

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

Definition

function placeMoon(mode: ScaleMode, geo: Vec3): Vec3

Parameters

NameTypeDescription
modeScaleMode

The scale.

geoVec3

The Moon's place in astronomical units from the Earth's centre.

Returns

Vec3

Where to draw it, in Earth radii.

Examples

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

console.log(placeMoon("true", [0.00257, 0, 0]).map(Math.round));
[ 60, 0, 0 ]

What it prints (run when this page was built)

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