リファレンス · 立体の星座 (視差から星を空間に置き、誤差の範囲と地球からの視線を示す)
StarIn3D型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One star of a figure in space, as seen from the viewpoint (the Earth, or another star).
インポート
import type { StarIn3D } from "@johnmorrisdotca/hoshi-stars/constellation-3d";
定義
interface StarIn3D {
star: Star;
id: string;
quality: DistanceQuality;
relativeError: number | undefined;
sight: {
origin: Point3;
direction: Point3;
near: number | undefined;
best: number | undefined;
far: number | undefined;
};
position: Point3 | undefined;
nearPosition: Point3 | undefined;
farPosition: Point3 | undefined;
lightYears: number | undefined;
range: readonly [
near: number,
far: number
] | undefined;
wide: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
star | Star | The catalogue's star. |
id | string | A key that stays the same: |
quality | DistanceQuality | How well the distance is known. |
relativeError | number | undefined | The parallax's error as a share of the parallax (0.05 is 5%), or |
sight | { origin: Point3; direction: Point3; near: number | undefined; best: number | undefined; far: number | undefined; } | The Earth's line of sight to the star: it starts at the Earth and runs along |
position | Point3 | undefined | The star's place: |
nearPosition | Point3 | undefined | The nearest and the farthest place one standard error of the parallax allows; |
farPosition | Point3 | undefined | |
lightYears | number | undefined | The distance from the viewpoint in light-years, or |
range | readonly [near: number, far: number] | undefined | The nearest and farthest distance from the viewpoint within one standard error; |
wide | boolean | True when the error bar is wider than the distance (the error is over 41% of the parallax, or reaches it): the star could be anywhere along a long stretch, so a picture shows the whole range and no point in the middle. |
例
import { constellationIn3D, type StarIn3D } from "@johnmorrisdotca/hoshi-stars/constellation-3d";
const star: StarIn3D = constellationIn3D("Ori").stars[0]!;
console.log(star.id, star.quality);hr-2061 fair出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。