apexPointfunction
The place on the Earth that faces the way the Earth is travelling round the Sun (the apex of its way): it sits on the morning side, which sweeps up more meteors than the evening side.
Import it
import { apexPoint } from "@johnmorrisdotca/chikyu-earth/meteors";
Definition
function apexPoint(ms: number): GeoPoint
Parameters
| Name | Type | Description |
|---|---|---|
ms | number | The moment, in milliseconds since the epoch. |
Returns
GeoPoint
The longitude and latitude of that place, in degrees.
Examples
import { apexPoint } from "@johnmorrisdotca/chikyu-earth/meteors";
console.log(Math.abs(apexPoint(Date.UTC(2026, 2, 20, 12)).lat) < 24); // true: it stays within the tropicstrueWhat it prints (run when this page was built)