Positiontype
Where a body is in a place's sky: the azimuth in degrees clockwise from north (0 north, 90 east, 180 south, 270 west) and the apparent altitude (refraction included) in degrees.
Import it
import type { Position } from "@johnmorrisdotca/wakusei-planets/suncalc";
Definition
interface Position {
azimuth: number;
altitude: number;
}
Members
| Name | Type | Description |
|---|---|---|
azimuth | number | |
altitude | number |
Examples
import { getPosition, type Position } from "@johnmorrisdotca/wakusei-planets/suncalc";
const p: Position = getPosition(new Date(Date.UTC(2026, 5, 21, 12)), 51.5, -0.1);
console.log(p.altitude > 0);trueWhat it prints (run when this page was built)