Reference · The Milky Way: a brightness map and soft bands to draw
GalacticPointtype
A point in galactic coordinates, in degrees.
Import it
import type { GalacticPoint } from "@johnmorrisdotca/hoshi-stars/milky-way";
Definition
interface GalacticPoint {
longitude: number;
latitude: number;
}
Members
| Name | Type | Description |
|---|---|---|
longitude | number | Galactic longitude, 0 (toward the Galactic centre in Sagittarius) up to but not including 360. |
latitude | number | Galactic latitude, -90 to 90: 0 is the plane of the Milky Way. |
Examples
import type { GalacticPoint } from "@johnmorrisdotca/hoshi-stars/milky-way";
const centre: GalacticPoint = { longitude: 0, latitude: 0 };
console.log(centre.longitude);0What it prints (run when this page was built)