AllSkyGridLinetype
One line of the grid of the picture: a meridian (a line of constant longitude) or a parallel (constant latitude) of the picture's own frame.
Import it
import type { AllSkyGridLine } from "@johnmorrisdotca/hoshi-stars/all-sky";
Definition
interface AllSkyGridLine {
kind: "meridian" | "parallel";
degrees: number;
runs: AllSkyPoint[][];
}
Members
| Name | Type | Description |
|---|---|---|
kind | "meridian" | "parallel" |
|
degrees | number | The longitude (0 up to 360) or latitude (-90 to 90) of the line, in the picture's frame: the galactic plane is the parallel at 0. |
runs | AllSkyPoint[][] | The line as runs of points, cut at the seam. |
Examples
import { allSkyGrid, type AllSkyGridLine } from "@johnmorrisdotca/hoshi-stars/all-sky";
const line: AllSkyGridLine = allSkyGrid({ width: 1000 })[0]!;
console.log(line.kind, line.degrees, line.runs.length);meridian 0 1What it prints (run when this page was built)