Reference · Passes: when a satellite crosses the sky over a place
PathPointtype
One sample along a pass: when, where in the sky, and whether the satellite is in sunlight (the track is drawn solid there and dashed in the shadow).
Import it
import type { PathPoint } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface PathPoint {
ms: number;
azimuth: number;
altitude: number;
sunlit: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
ms | number | |
azimuth | number | |
altitude | number | |
sunlit | boolean |
Examples
import type { PathPoint } from "@johnmorrisdotca/chikyu-earth/passes";
const lit = (points: readonly PathPoint[]): number => points.filter((point) => point.sunlit).length;
console.log(typeof lit);functionWhat it prints (run when this page was built)