Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

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

NameTypeDescription
azimuthDegnumber

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));
SSW

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.