LayeredThingtype
A thing in a layer: where it is, how far, and which band it is in.
Import it
import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";
Definition
interface LayeredThing extends Omit<DistanceInput, "lightYears" | "low" | "high" | "certainty"> {
lightYears: number;
low: number;
high: number;
certainty: Certainty;
band: number;
uncertain: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
lightYears | number | The best distance in light-years. For an |
low | number | The nearest and the farthest it can be, in light-years. |
high | number | |
certainty | Certainty | |
band | number | The band of |
uncertain | boolean | True when the distance is rough ( |
kind | LayerKind | |
magnitude | number | undefined | Visual magnitude, or |
name | string | undefined | |
rightAscension | number | J2000 right ascension and declination in degrees. |
declination | number | |
id | string | A key that stays the same: |
Examples
import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";
const far = (thing: LayeredThing): boolean => thing.band >= 4;
console.log(typeof far);functionWhat it prints (run when this page was built)