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

RidePosetype

The camera ridePose works out: where it is, which way it looks, which way is up in the picture, its field of view in degrees, and how big the Earth looks from there (its angular radius in degrees).

Import it

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

Definition

interface RidePose {
    position: Vec3;
    forward: Vec3;
    up: Vec3;
    fov: number;
    earthRadiusDegrees: number;
}

Members

NameTypeDescription
positionVec3
forwardVec3
upVec3
fovnumber
earthRadiusDegreesnumber

Examples

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

const describe = (pose: RidePose): string => `looking ${pose.forward.map((n) => n.toFixed(2)).join(",")} with a ${pose.fov} degree view`;
console.log(typeof describe);
function

What it prints (run when this page was built)

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