AllSkyPointtype
A point of the picture: x to the right and y DOWN from the top left corner, as a screen has it.
Import it
import type { AllSkyPoint } from "@johnmorrisdotca/hoshi-stars/all-sky";
Definition
interface AllSkyPoint {
x: number;
y: number;
}
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { AllSkyPoint } from "@johnmorrisdotca/hoshi-stars/all-sky";
const middle: AllSkyPoint = { x: 500, y: 250 };
console.log(middle.x / 2 === middle.y);trueWhat it prints (run when this page was built)