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 · The Sun, Moon and planets: pure parts

rideFovfunction

The field of view, in degrees, of a riding camera at a zoom: the natural 60 divided by the zoom, held between 1.5 and 100 (a zoom of 40, the most a ride takes, is 1.5 degrees).

Import it

import { rideFov } from "@johnmorrisdotca/chikyu-earth/space";

Definition

function rideFov(zoom: number): number

Parameters

NameTypeDescription
zoomnumber

The shared controls' zoom.

Returns

number

The field of view in degrees.

Examples

import { rideFov } from "@johnmorrisdotca/chikyu-earth/space";

console.log(rideFov(1), rideFov(6), rideFov(100));
60 10 1.5

What it prints (run when this page was built)

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