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

BodyMoontype

One moon of a planet at a moment: its name, where it is from the planet's centre and how big it is, both in radii of the planet, in scene axes.

Import it

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

Definition

interface BodyMoon {
    name: string;
    offset: Readonly<Vec3>;
    radius: number;
}

Members

NameTypeDescription
namestring
offsetreadonly [number, number, number]
radiusnumber

Examples

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

const io: BodyMoon = { name: "Io", offset: [5.9, 0, 0], radius: 0.0255 };
console.log(io.name);

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