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
| Name | Type | Description |
|---|---|---|
lattice | number[][] | 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). |
pitch | number | The distance between neighbouring cells as a share of the footprint's radius. |
radius | number | 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);