Framing型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where the camera stands: the point it looks at, its position and its distance from that point, in metres.
インポート
import type { Framing } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Framing {
target: Vec3;
position: Vec3;
distance: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
target | Vec3 | |
position | Vec3 | |
distance | number |
例
import { frameFor, type Framing } from "@johnmorrisdotca/uchusen-rockets";
const framing: Framing = frameFor([-5, 0, -5], [5, 100, 5], { az: 30, el: 15 }, 480 / 640);
console.log(framing.distance > 0);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。