starsInside関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The catalogue stars (magnitude 6.0 and brighter) that lie inside the circle of an object's major diameter, brightest first. This says where a star is, not what it belongs to: a star in front of a cluster or far behind it is in the list too, because the catalogue gives no cluster distance to tell them apart. Draw them as "inside the outline", not as proven members.
インポート
import { starsInside } from "@johnmorrisdotca/hoshi-stars/deep-sky/members";
定義
function starsInside(object: DeepSkyObject, shape: DeepSkyShape): Star[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
object | DeepSkyObject | The deep-sky object (a cluster, usually). |
shape | DeepSkyShape | Its shape from |
戻り値
Star[]
A fresh array of the shared, frozen stars: empty where the object has no size or no catalogue star is inside.
例
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyShape } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
import { starsInside } from "@johnmorrisdotca/hoshi-stars/deep-sky/members";
const pleiades = deepSkyObject("M45")!;
console.log(starsInside(pleiades, deepSkyShape(pleiades)).map((star) => star.name ?? star.hr));[
'Alcyone', 'Atlas',
'Electra', 'Maia',
'Merope', 'Taygeta',
'Pleione', 1172,
'Celaeno', 1144,
'Asterope'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。