本文へ移動

Uchusen Rockets宇宙船

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

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

目次

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

RoundPlace型

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

Text wrapped on a hull of revolution round the spine (the Y axis, or the line through axis): y is the height of the middle of the capitals and az the azimuth of the anchor, in radians round Y from +Z towards +X, as everywhere else in the kit. radius is the hull's radius, one number or a function of the height for a cone. run is the way the text reads: around the hull, left to right seen from outside (the default); up the spine, towards the bow, for lettering along a ship's length; or down.

インポート

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

定義

interface RoundPlace extends PlaceBase {
    radius: number | ((y: number) => number);
    y: number;
    az: number;
    run?: "around" | "up" | "down";
    axis?: readonly [
        number,
        number
    ];
    sides?: number;
}

メンバー

名前型説明
radiusnumber | ((y: number) => number)
ynumber
aznumber
run (省略可)"around" | "up" | "down" | undefined
axis (省略可)readonly [number, number] | undefined

The x, z of the spine, when it is not the Y axis.

sides (省略可)number | undefined

How many sides the hull's own mesh has (the kit's drums have 56), so the lettering clears the flats between them.

heightnumber

The height of a capital letter, in metres.

align (省略可)"start" | "middle" | "end" | undefined

Which end of the text is on the anchor: start (the default), middle or end.

例

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

const hull: RoundPlace = { radius: 6.7, y: 12, az: 0, height: 1.2, align: "middle", run: "around" };
console.log(hull.radius);
6.7

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

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

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