OrbitShapetype
The size and shape of an orbit.
Import it
import type { OrbitShape } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
interface OrbitShape {
semiMajorKm: number;
periodMinutes: number;
perigeeKm: number;
apogeeKm: number;
eccentricity: number;
}
Members
| Name | Type | Description |
|---|---|---|
semiMajorKm | number | Half the longest width of the ellipse, kilometres from the Earth's centre. |
periodMinutes | number | One revolution, minutes. |
perigeeKm | number | Height of the lowest point above the mean Earth radius (6371 km), kilometres. |
apogeeKm | number | Height of the highest point, kilometres. |
eccentricity | number |
Examples
import type { OrbitShape } from "@johnmorrisdotca/chikyu-earth/catalogue";
const show = (shape: OrbitShape): string => `${shape.perigeeKm.toFixed(0)} to ${shape.apogeeKm.toFixed(0)} km`;
console.log(typeof show);functionWhat it prints (run when this page was built)