Reference · Facts, line drawings and positions
LineupViewtype
The camera: its centre and the half of the picture's height, in Suns. The picture is 2 * h Suns tall and 2 * h * aspect wide.
Import it
import type { LineupView } from "@johnmorrisdotca/wakusei-planets";
Definition
interface LineupView {
x: number;
y: number;
h: number;
}
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
h | number |
Examples
import { lineupBodies, lineupView, placeLineup, type LineupView } from "@johnmorrisdotca/wakusei-planets";
const view: LineupView = lineupView(placeLineup(lineupBodies(), "row"), 1);
console.log(view.h);3117.499999999999What it prints (run when this page was built)