RidePose型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The camera ridePose works out: where it is, which way it looks, which way is up in the picture, its field of view in degrees, and how big the Earth looks from there (its angular radius in degrees).
インポート
import type { RidePose } from "@johnmorrisdotca/chikyu-earth/space";
定義
interface RidePose {
position: Vec3;
forward: Vec3;
up: Vec3;
fov: number;
earthRadiusDegrees: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
position | Vec3 | |
forward | Vec3 | |
up | Vec3 | |
fov | number | |
earthRadiusDegrees | number |
例
import type { RidePose } from "@johnmorrisdotca/chikyu-earth/space";
const describe = (pose: RidePose): string => `looking ${pose.forward.map((n) => n.toFixed(2)).join(",")} with a ${pose.fov} degree view`;
console.log(typeof describe);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。