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

lineupZoomForfunction

The zoom at which the camera frames a size: a radius in Suns, held to the line-up's smallest and largest.

Import it

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

Definition

function lineupZoomFor(places: readonly LineupPlace[], radius: number): number

Parameters

NameTypeDescription
placesreadonly LineupPlace[]

The places, smallest first.

radiusnumber

A radius in Suns.

Returns

number

The zoom from 0 to 1 (0 for an empty or lone line-up).

Examples

import { lineupBodies, lineupZoomFor, placeLineup } from "@johnmorrisdotca/wakusei-planets";

console.log(lineupZoomFor(placeLineup(lineupBodies(), "row"), 80).toFixed(3));
0.571

What it prints (run when this page was built)

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