リファレンス · 距離で見る空 (10・50・100・500・1,000光年より近い星や銀河を層に分けて、距離の帯ごとに色分けします。距離がはっきりしないものは別にし、推測で置くことはしません)
LayeredThing型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A thing in a layer: where it is, how far, and which band it is in.
インポート
import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";
定義
interface LayeredThing extends Omit<DistanceInput, "lightYears" | "low" | "high" | "certainty"> {
lightYears: number;
low: number;
high: number;
certainty: Certainty;
band: number;
uncertain: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
lightYears | number | The best distance in light-years. For an |
low | number | The nearest and the farthest it can be, in light-years. |
high | number | |
certainty | Certainty | |
band | number | The band of |
uncertain | boolean | True when the distance is rough ( |
kind | LayerKind | |
magnitude | number | undefined | Visual magnitude, or |
name | string | undefined | |
rightAscension | number | J2000 right ascension and declination in degrees. |
declination | number | |
id | string | A key that stays the same: |
例
import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";
const far = (thing: LayeredThing): boolean => thing.band >= 4;
console.log(typeof far);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。