本文へ移動

Uchusen Rockets宇宙船

出典つきの寸法から描いたロケットです。ページに置いて、分解して、回して見られる線画と彩色した3Dビューに加え、ロケットが本当に組み合わさるかを確かめる、型付きのデータモデルを備えています。

Uchusen は、宇宙を飛ぶ乗り物を意味する日本語「宇宙船」(うちゅうせん)から取った名前です。 名前について(英語)

目次

リファレンス · ロケット・型式・部品・適合チェック

Motion型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

One moving group of a ship: which ship and which tagged group, what it does and how fast, and its note.

インポート

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

定義

interface Motion {
    ship: string;
    group: string;
    kind: MotionKind;
    rate?: number;
    from?: number;
    to?: number;
    travel?: number;
    period?: number;
    phase?: number;
    note: string;
}

メンバー

名前型説明
shipstring

The rocket (a registry id) whose parts carry the group.

groupstring

The name of the Move on the pieces.

kindMotionKind
rate (省略可)number | undefined

Spin: degrees a second at real speed (negative turns the other way).

from (省略可)number | undefined

Swing and sweep: the angles in degrees. A slide: metres at the stowed end. Both start at from (default 0).

to (省略可)number | undefined
travel (省略可)number | undefined

Slide: how far it pays out, in metres, at the open end.

period (省略可)number | undefined

Swing and sweep: seconds for a whole cycle at real speed.

phase (省略可)number | undefined

Where in the cycle it starts, 0 to 1, so the five leaves of a door open one after another.

notestring

What it is in the ship's words, with its real rate.

例

import { motionsOf, type Motion } from "@johnmorrisdotca/uchusen-rockets";

const ring: Motion = motionsOf("fleet-ship-01")[0];
console.log(ring.kind);
spin

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/uchusen-rockets 0.14.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。