Reference · The bright catalogue stars inside a cluster's outline
starsInsidefunction
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 it
import { starsInside } from "@johnmorrisdotca/hoshi-stars/deep-sky/members";
Definition
function starsInside(object: DeepSkyObject, shape: DeepSkyShape): Star[]
Parameters
| Name | Type | Description |
|---|---|---|
object | DeepSkyObject | The deep-sky object (a cluster, usually). |
shape | DeepSkyShape | Its shape from |
Returns
Star[]
A fresh array of the shared, frozen stars: empty where the object has no size or no catalogue star is inside.
Examples
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'
]What it prints (run when this page was built)