Reference · The Milky Way: a brightness map and soft bands to draw
fromGalacticfunction
The right ascension and declination (J2000) of a point given in galactic coordinates.
Import it
import { fromGalactic } from "@johnmorrisdotca/hoshi-stars/milky-way";
Definition
function fromGalactic(point: GalacticPoint): SkyPoint
Parameters
| Name | Type | Description |
|---|---|---|
point | GalacticPoint | A galactic longitude and latitude in degrees. |
Returns
SkyPoint
Right ascension 0 up to but not including 360, declination -90 to 90.
Examples
import { fromGalactic } from "@johnmorrisdotca/hoshi-stars/milky-way";
console.log(fromGalactic({ longitude: 0, latitude: 0 })); // about { rightAscension: 266.4, declination: -28.9 }{ rightAscension: 266.4049948010461, declination: -28.936173960138678 }What it prints (run when this page was built)