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;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
ship | string | The rocket (a registry id) whose parts carry the group. |
group | string | The name of the |
kind | MotionKind | |
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 |
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. |
note | string | 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出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。