Reference · Journey mode: transfers, launch windows and flip-and-burn trips
Stoptype
A place a trip can start or end at: the Earth, the Moon or a planet, with what the arithmetic needs.
Import it
import type { Stop } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
interface Stop {
id: string;
name: {
en: string;
ja: string;
};
kind: "star" | "planet" | "dwarf-planet" | "moon" | "beyond";
parent?: string;
radiusKm: number;
muKm3s2?: number;
periodDays?: number;
colour: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | { en: string; ja: string; } | |
kind | "star" | "planet" | "dwarf-planet" | "moon" | "beyond" | |
parent (optional) | string | undefined | The planet a moon goes round. |
radiusKm | number | The equatorial radius, km. |
muKm3s2 (optional) | number | undefined | The gravitational parameter, km^3/s^2. Left out, the journey's own table ( |
periodDays (optional) | number | undefined | The sidereal orbital period, days. Left out, the journey's own table ( |
colour | string | The body's mean colour, |
Examples
import type { Stop } from "@johnmorrisdotca/uchusen-rockets/journey";
const mars: Stop = { id: "mars", name: { en: "Mars", ja: "火星" }, kind: "planet", radiusKm: 3396.19, colour: "#c76a3f" };
console.log(mars.name.en);MarsWhat it prints (run when this page was built)