Reference · Pictures of deep-sky objects and where each lies on the sky
pictureCornersfunction
The four corners of a picture on the sky, from the top left round to the bottom left, as the tangent plane about its centre puts them (the way the survey cut it). A map in any projection can lay the picture by pinning three of them.
Import it
import { pictureCorners } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
Definition
function pictureCorners(picture: DeepSkyPicture): [SkyPoint, SkyPoint, SkyPoint, SkyPoint]
Parameters
| Name | Type | Description |
|---|---|---|
picture | DeepSkyPicture | A picture. |
Returns
[SkyPoint, SkyPoint, SkyPoint, SkyPoint]
The corners: top left, top right, bottom right, bottom left, each a sky point in degrees.
Examples
import { deepSkyPicture, pictureCorners } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
console.log(pictureCorners(deepSkyPicture("M31")!)[0]);{ rightAscension: 9.812728356412663, declination: 39.46875154779679 }What it prints (run when this page was built)