qibla/.github/wiki/api/functions/compassDir.md
Aric Camarata a59756bd07 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:41:58 -04:00

616 B

@acamarata/qibla v1.1.1


@acamarata/qibla / compassDir

Function: compassDir()

compassDir(bearing): "N" | "NE" | "E" | "SE" | "S" | "SW" | "W" | "NW"

Defined in: index.ts:68

Eight-point compass abbreviation for a bearing.

Parameters

bearing

number

Bearing in degrees (0-360).

Returns

"N" | "NE" | "E" | "SE" | "S" | "SW" | "W" | "NW"

Two-letter compass abbreviation (N, NE, E, SE, S, SW, W, NW).