Reference
The sky seen from another star: positions, distances and brightness from there, with the Sun among the stars
import { … } from "@johnmorrisdotca/hoshi-stars/sky-from";
125.8 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
SeenSky | type | A list of seen stars, brightest first, with skipped: how many stars of the table could not be moved: they have no distance (a parallax of 0 or less) or, for a nearby star, no magnitude, or they lie nearer to the viewpoint than the error of its distance. |
SeenStar | type | One star as seen from a viewpoint: where it is in that sky, how far, and how bright. |
skyFrom | function | The sky as seen from another star or point in space. |
SkyFromOptions | type | The options of skyFrom. |
SkyFromViewpoint | type | Where a sky is seen from: a bright star, a nearby star (from /nearby), a name starByName finds, or a point { x, y, z } in parsecs on the J2000 equatorial axes with the Sun at the origin (x toward right ascension 0, z toward the north pole). |