Reference · How big a Messier object is on the sky and which way it lies, and its outline
deepSkyOutlinefunction
The outline of an object on the sky: a closed ring of points (the first repeated as the last) round an ellipse of the shape's major and minor axes at its angle. Where the minor axis or the angle is not known the ring is a circle of the major diameter, because no other shape is measured. The points are on the sky, so any projection can draw them.
Import it
import { deepSkyOutline } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic-shape
Definition
function deepSkyOutline(centre: SkyPoint, shape: DeepSkyShape, points?: number): SkyPoint[] | undefined
Parameters
| Name | Type | Description |
|---|---|---|
centre | SkyPoint | The object's position. |
shape | DeepSkyShape | Its shape, from |
points (optional) | number | How many points round it, at least 8 (default 48). |
Returns
SkyPoint[] | undefined
The ring, or undefined where the shape has no size.
Examples
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyOutline, deepSkyShape } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
const m31 = deepSkyObject("M31")!;
console.log(deepSkyOutline(m31, deepSkyShape(m31), 16)!.length);17What it prints (run when this page was built)