本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス · 立体の星座 (視差から星を空間に置き、誤差の範囲と地球からの視線を示す)

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;
}

メンバー

名前型説明
starStar

The catalogue's star.

idstring

A key that stays the same: hr-2061.

qualityDistanceQuality

How well the distance is known.

relativeErrornumber | undefined

The parallax's error as a share of the parallax (0.05 is 5%), or undefined where the parallax has no stated error or there is no parallax.

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 direction, and the star lies somewhere on it. The distances below are measured along it from the Earth (atLightYears).

positionPoint3 | undefined

The star's place: undefined for a star with no parallax, which is never put at a guessed distance.

nearPositionPoint3 | undefined

The nearest and the farthest place one standard error of the parallax allows; undefined where there is no error. The farthest is undefined too where the error reaches the parallax and the star could be any distance beyond.

farPositionPoint3 | undefined
lightYearsnumber | undefined

The distance from the viewpoint in light-years, or undefined where there is no parallax.

rangereadonly [near: number, far: number] | undefined

The nearest and farthest distance from the viewpoint within one standard error; undefined where there is no error. The farthest is Infinity where the error reaches the parallax.

wideboolean

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。