SkyNeighbour型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A body near the target in the sky: its angle from the target in degrees (0 to 180) and how far that angle may be off, in arc-seconds.
インポート
import type { SkyNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
定義
interface SkyNeighbour {
id: BodyId;
kind: NearestKind;
angle: number;
uncertaintyArcseconds: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | BodyId | |
kind | "moon" | "star" | "planet" | "dwarf-planet" | |
angle | number | The angle between the target and this body in the observer's sky, degrees. |
uncertaintyArcseconds | number | The accuracy to expect of |
例
import { nearest, type SkyNeighbour } from "@johnmorrisdotca/wakusei-planets/nearest";
const next: SkyNeighbour | undefined = nearest("moon", { count: 1, date: Date.UTC(2026, 10, 8) })[0];
console.log(next?.id, next?.angle.toFixed(1));venus 7.2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。