Reference · Facts, line drawings and positions
systemfunction
A planet and its moons as the Earth sees them at a time: each moon's place in planet radii, in the viewer's frame (x right, y up, z toward the viewer).
Import it
import { system } from "@johnmorrisdotca/wakusei-planets";
Definition
function system(planet: HostId, time: number): System
Parameters
| Name | Type | Description |
|---|---|---|
planet | HostId | The planet's name. |
time | number | The instant, in milliseconds since 1970. |
Returns
System
The planet's pose and every moon of it, nearest first.
Examples
import { system } from "@johnmorrisdotca/wakusei-planets";
const { moons } = system("jupiter", Date.UTC(2026, 10, 2, 12));
console.log(moons.map((moon) => `${moon.id} ${moon.x.toFixed(1)}`).join(", "));io -5.0, europa -5.5, ganymede -13.9, callisto -20.0What it prints (run when this page was built)