Reference · The Sun, Moon and planets: pure parts
BodyViewtype
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 it
import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";
Definition
interface BodyView {
camera: THREE.Camera;
width: number;
height: number;
}
Members
| Name | Type | Description |
|---|---|---|
camera | THREE.Camera | |
width | number | |
height | number |
Examples
import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";
const across = (view: BodyView): number => view.width;
console.log(typeof across);