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

BeamCellstype

The spot cells inside a footprint: where each one's middle is, and how large they are, in the footprint's own units (the footprint's radius is 1).

Import it

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

Definition

interface BeamCells {
    lattice: number[][];
    pitch: number;
    radius: number;
}

Members

NameTypeDescription
latticenumber[][]

Each cell's middle on the lattice, in units of the distance between neighbours (the hexagonal pack: one at the middle, then rings of six, twelve, eighteen).

pitchnumber

The distance between neighbouring cells as a share of the footprint's radius.

radiusnumber

A cell's radius as a share of the footprint's radius.

Examples

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

const none: BeamCells = { lattice: [], pitch: 0, radius: 0 };
console.log(none.lattice.length);

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