eclipticLinefunction
The ecliptic as points of the equatorial sky, a degree of longitude apart by default, closed (the last is the first). The chart draws it as a dashed line when its ecliptic layer is on.
Import it
import { eclipticLine } from "@johnmorrisdotca/hoshi-stars/chart";
Definition
function eclipticLine(step?: number): SkyPoint[]
Parameters
| Name | Type | Description |
|---|---|---|
step (optional) | number | The longitude step in degrees (1 when left out; at least 0.1). |
Returns
SkyPoint[]
The points, from longitude 0 round to 360.
Examples
import { eclipticLine } from "@johnmorrisdotca/hoshi-stars/chart";
const line = eclipticLine(30);
console.log(line.length, Math.max(...line.map((p) => p.declination)).toFixed(1));
// 13 23.413 23.4What it prints (run when this page was built)