Reference · Passes: when a satellite crosses the sky over a place
compassOffunction
The compass word for a direction.
Import it
import { compassOf } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
function compassOf(azimuthDeg: number): Compass
Parameters
| Name | Type | Description |
|---|---|---|
azimuthDeg | number | Degrees clockwise from north: 0 is north, 90 east, 180 south, 270 west. |
Returns
Compass
One of sixteen words, "N" to "NNW".
Examples
import { compassOf } from "@johnmorrisdotca/chikyu-earth/passes";
console.log(compassOf(200));SSWWhat it prints (run when this page was built)