Reference · Passes: when a satellite crosses the sky over a place
PassPointtype
One moment of a pass: when, which way, how high and how far.
Import it
import type { PassPoint } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface PassPoint {
ms: number;
azimuth: number;
compass: Compass;
altitude: number;
rangeKm: number;
}
Members
| Name | Type | Description |
|---|---|---|
ms | number | The moment, milliseconds since the Unix epoch (UTC; add the place's own offset for local time). |
azimuth | number | Degrees clockwise from north. |
compass | Compass | The compass word for |
altitude | number | Degrees above the horizon (geometric: no refraction). |
rangeKm | number | Distance from the watcher, kilometres. |
Examples
import type { PassPoint } from "@johnmorrisdotca/chikyu-earth/passes";
const describe = (point: PassPoint): string => `${point.compass} ${point.altitude.toFixed(0)} degrees`;
console.log(typeof describe);functionWhat it prints (run when this page was built)