Reference · Satellites: orbital elements in, positions out
NearestTargettype
A place on the ground, a direction in the sky from an observer, or another satellite of the same group.
Import it
import type { NearestTarget } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
type NearestTarget = {
place: GeoPoint;
heightM?: number;
} | {
azimuth: number;
elevation: number;
observer: GeoPoint & {
heightM?: number;
};
} | {
satellite: number;
};
Examples
import type { NearestTarget } from "@johnmorrisdotca/chikyu-earth/satellites";
const target: NearestTarget = { place: { lon: -0.13, lat: 51.51 } };
console.log("place" in target);trueWhat it prints (run when this page was built)