FlatPlace型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Text on a flat wall: at is the anchor, the middle of the capitals' height; right is the way the text reads and up the way a letter stands, both unit vectors; the viewer who sees the text right way round
stands on the side of right x up.
インポート
import type { FlatPlace } from "@johnmorrisdotca/uchusen-rockets";
定義
interface FlatPlace extends PlaceBase {
at: Vec3;
right: Vec3;
up: Vec3;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
at | Vec3 | |
right | Vec3 | |
up | Vec3 | |
height | number | The height of a capital letter, in metres. |
align (省略可) | "start" | "middle" | "end" | undefined | Which end of the text is on the anchor: |
例
import type { FlatPlace } from "@johnmorrisdotca/uchusen-rockets";
const wall: FlatPlace = { at: [6.4, 20, 0], right: [0, 0, -1], up: [0, 1, 0], height: 0.9, align: "middle" };
console.log(wall.height);0.9出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。