Reference · The same, with suncalc 1's conventions (radians, azimuth from south)
LegacyPositiontype
Where a body is: the azimuth in radians from south toward west (0 south, a quarter turn west) and the altitude in radians.
Import it
import type { LegacyPosition } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
Definition
interface LegacyPosition {
azimuth: number;
altitude: number;
}
Members
| Name | Type | Description |
|---|---|---|
azimuth | number | |
altitude | number |
Examples
import { getPosition, type LegacyPosition } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
const p: LegacyPosition = 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)