NearestOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What nearest may be asked. date is required.
インポート
import type { NearestOptions } from "@johnmorrisdotca/chikyu-earth/satellites";
定義
interface NearestOptions {
count?: number;
within?: number;
by?: "sky" | "space";
date: number;
observer?: GeoPoint & {
heightM?: number;
};
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
count (省略可) | number | undefined | How many to return, nearest first. |
within (省略可) | number | undefined | Drop anything further than this: kilometres for |
by (省略可) | "space" | "sky" | undefined |
|
date | number | The moment, milliseconds since the Unix epoch. |
observer (省略可) | (GeoPoint & { heightM?: number; }) | undefined | Where the sky is seen from, when the target is a satellite and |
例
import type { NearestOptions } from "@johnmorrisdotca/chikyu-earth/satellites";
const options: NearestOptions = { date: Date.UTC(2026, 10, 2), by: "space", count: 5 };
console.log(options.by);space出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。