NearestTarget型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A place on the ground, a direction in the sky from an observer, or another satellite of the same group.
インポート
import type { NearestTarget } from "@johnmorrisdotca/chikyu-earth/satellites";
定義
type NearestTarget = {
place: GeoPoint;
heightM?: number;
} | {
azimuth: number;
elevation: number;
observer: GeoPoint & {
heightM?: number;
};
} | {
satellite: number;
};
例
import type { NearestTarget } from "@johnmorrisdotca/chikyu-earth/satellites";
const target: NearestTarget = { place: { lon: -0.13, lat: 51.51 } };
console.log("place" in target);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。