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

phaseAtfunction

Which phase a place on the timeline is in, and how far along to the next. A value that is not a number is the start.

Import it

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

Definition

function phaseAt(flight: Flight, position: number): { index: number; along: number; phase: FlightPhase; }

Parameters

NameTypeDescription
flightFlight

A flight.

positionnumber

A place on the timeline: 0 is the first phase, 1 the second, 1.5 halfway to the third.

Returns

{ index: number; along: number; phase: FlightPhase; }

The phase index, how far along to the next (0 to 1) and the phase.

Examples

import { flightOf, phaseAt } from "@johnmorrisdotca/uchusen-rockets";

const flight = flightOf("falcon-9", "block-5");
if (flight) console.log(phaseAt(flight, 1.5).phase.name);
Liftoff

What it prints (run when this page was built)

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