BodyView型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The camera that draws the bodies and the size of its view in CSS pixels, as the space view tells a drawing at each draw. The camera's matrices are current.
インポート
import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";
定義
interface BodyView {
camera: THREE.Camera;
width: number;
height: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
camera | THREE.Camera | |
width | number | |
height | number |
例
import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";
const across = (view: BodyView): number => view.width;
console.log(typeof across);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。