Reference · Map projections for sky charts
SkyPointtype
A point on the celestial sphere, in degrees. Right ascension may be any number (it wraps at 360); declination is -90 to 90.
Import it
import type { SkyPoint } from "@johnmorrisdotca/hoshi-stars/projection";
Also exported from: @johnmorrisdotca/hoshi-stars/milky-way, @johnmorrisdotca/hoshi-stars/sky
Definition
interface SkyPoint {
rightAscension: number;
declination: number;
}
Members
| Name | Type | Description |
|---|---|---|
rightAscension | number | Right ascension in degrees. |
declination | number | Declination in degrees, -90 to 90. |
Examples
import type { SkyPoint } from "@johnmorrisdotca/hoshi-stars/projection";
const polaris: SkyPoint = { rightAscension: 37.95, declination: 89.26 };
console.log(polaris.declination);89.26What it prints (run when this page was built)