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

compressfunction

The same direction at a compressed distance from the Earth: the Moon is 10 Earth radii away, and a body k times further than the Moon is k^0.25 times as far here.

Import it

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

Definition

function compress(v: Vec3): Vec3

Parameters

NameTypeDescription
vVec3

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

Returns

Vec3

The place in Earth radii, compressed; the centre stays at the centre.

Examples

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

console.log(compress([0.00257, 0, 0]), compress([0, 0, 0]));
[ 10, 0, 0 ] [ 0, 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.