Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

labelDensityfunction

How dense a ship's labels are: labels for each hundred metres, and the share of the length each label stands for. The target is one label for every 3 to 5% of the length.

Import it

import { labelDensity } from "@johnmorrisdotca/uchusen-rockets";

Definition

function labelDensity(ship: ShipList): { labels: number; perHundredMetres: number; shareEach: number; }

Parameters

NameTypeDescription
shipShipList

The ship's list.

Returns

{ labels: number; perHundredMetres: number; shareEach: number; }

The count, labels for each hundred metres and the share of the length each label stands for.

Examples

import { labelDensity, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";

console.log(labelDensity(SAMPLE_SHIPS.hauler));
{
  labels: 93,
  perHundredMetres: 46.062407132243685,
  shareEach: 0.010752688172043012
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.