allSkyUnprojectfunction
The sky under a point of the picture: the inverse of allSkyProject, with the same options.
Import it
import { allSkyUnproject } from "@johnmorrisdotca/hoshi-stars/all-sky";
Definition
function allSkyUnproject(point: AllSkyPoint, options: AllSkyOptions): SkyPoint | undefined
Parameters
| Name | Type | Description |
|---|---|---|
point | AllSkyPoint | A point of the picture, |
options | AllSkyOptions | The same options that drew the picture. |
Returns
SkyPoint | undefined
The sky position (right ascension 0 up to 360 and declination, in degrees, J2000), or undefined when the point is outside the oval (or the box, for the plain rectangle).
Examples
import { allSkyProject, allSkyUnproject } from "@johnmorrisdotca/hoshi-stars/all-sky";
const options = { width: 1000, frame: "equatorial" } as const;
const spot = allSkyProject({ rightAscension: 88.79, declination: 7.41 }, options); // Betelgeuse
console.log(allSkyUnproject(spot, options)); // about { rightAscension: 88.79, declination: 7.41 }{ rightAscension: 88.79000000000002, declination: 7.409999999999998 }What it prints (run when this page was built)