Reference · Facts, line drawings and positions
LineupPlacetype
A body with its place: the centre in Suns and the radius in Suns.
Import it
import type { LineupPlace } from "@johnmorrisdotca/wakusei-planets";
Definition
interface LineupPlace {
body: LineupBody;
x: number;
y: number;
r: number;
}
Members
| Name | Type | Description |
|---|---|---|
body | LineupBody | |
x | number | |
y | number | |
r | number |
Examples
import { lineupBodies, placeLineup, type LineupPlace } from "@johnmorrisdotca/wakusei-planets";
const second: LineupPlace = placeLineup(lineupBodies({ set: "bright" }), "row")[1]!;
console.log(second.body.id, second.x, second.r);sirius-a 3.143 1.7144What it prints (run when this page was built)