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

faceOffsetfunction

Yaw and tilt, in radians, that put a camera looking at a satellite on a facing. down is straight above it, looking down at it and the Earth. ahead looks along the way it goes.

Import it

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

Definition

function faceOffset(face: RideFace): { yaw: number; tilt: number; }

Parameters

NameTypeDescription
faceRideFace

The facing.

Returns

{ yaw: number; tilt: number; }

The yaw and tilt to give aboveAxes.

Examples

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

console.log(faceOffset("down").tilt, faceOffset("ahead").tilt > 1);
0 true

What it prints (run when this page was built)

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