Reference · Rockets, variants, parts and the fit check
Framingtype
Where the camera stands: the point it looks at, its position and its distance from that point, in metres.
Import it
import type { Framing } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Framing {
target: Vec3;
position: Vec3;
distance: number;
}
Members
| Name | Type | Description |
|---|---|---|
target | Vec3 | |
position | Vec3 | |
distance | number |
Examples
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);trueWhat it prints (run when this page was built)