BeamEnds型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The two ends of a carry, and the slot the part is heading for.
インポート
import type { BeamEnds } from "@johnmorrisdotca/uchusen-rockets";
定義
interface BeamEnds {
from: Vec3;
part: Vec3;
slot: Vec3;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
from | Vec3 | The emitter, on the drone. |
part | Vec3 | Where the part is. |
slot | Vec3 | Where the part settles. |
例
import { tractorBeam, type BeamEnds } from "@johnmorrisdotca/uchusen-rockets";
const ends: BeamEnds = { from: [0, 0, 0], part: [0, 8, 0], slot: [0, 10, 0] };
console.log(tractorBeam(ends, "carry").length > 0);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。