Reference · Rockets, variants, parts and the fit check
Triptype
A trip as ship time and Earth time.
Import it
import type { Trip } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Trip {
ship: number;
earth: number;
peak: number;
burn: number;
}
Members
| Name | Type | Description |
|---|---|---|
ship | number | Years by the ship's clocks and by the clocks of the place it left. |
earth | number | |
peak | number | The speed it cruises at, as a fraction of c (the most it reaches when it never cruises). |
burn | number | Years under power in each of the two burns, by the ship's clock. |
Examples
import { trip, type Trip } from "@johnmorrisdotca/uchusen-rockets";
const t: Trip = trip(4.37, 1);
console.log(t.ship, t.earth, t.peak);3.582393722747833 6.00250277725247 0.9516558449006334What it prints (run when this page was built)