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

easedDistancefunction

A distance between two camera distances, even in scale. The halfway point is the geometric mean, so 60 m to 1 800 m does not rush the far end.

Import it

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

Definition

function easedDistance(from: number, to: number, t: number): number

Parameters

NameTypeDescription
fromnumber

The distance at the start, in metres.

tonumber

The distance at the end, in metres.

tnumber

How far along the move is, from 0 to 1.

Returns

number

The distance at t, in metres.

Examples

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

console.log(easedDistance(60, 1800, 0.5).toFixed(0));
329

What it prints (run when this page was built)

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