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

pathClearsfunction

Whether every leg but the last stays out of the hull. The last leg is the move into the slot, so it may enter.

Import it

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

Definition

function pathClears(path: readonly (readonly [number, number, number])[], hull: HullBox): boolean

Parameters

NameTypeDescription
pathreadonly (readonly [number, number, number])[]

The points, in order.

hullHullBox

The hull the earlier legs must stay outside of.

Returns

boolean

True when no sample of those legs is inside the hull.

Examples

import { approachPath, pathClears } from "@johnmorrisdotca/uchusen-rockets";

const hull = { min: [-10, 0, -4] as const, max: [10, 40, 4] as const };
console.log(pathClears(approachPath(0, 1, [0, 20, 0], hull), hull));
true

What it prints (run when this page was built)

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