本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · 太陽、月、惑星: 計算部分

Frame型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Where everything is at one moment: positions in astronomical units from the Earth's centre, in scene axes (x to the vernal equinox, y north, z toward -y of the equator).

インポート

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

定義

interface Frame {
    ms: number;
    sun: Vec3;
    moon: Vec3;
    planets: Record<PlanetName, Vec3>;
    spin: number;
}

メンバー

名前型説明
msnumber
sunVec3
moonVec3
planetsRecord<"Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto", Vec3>
spinnumber

Greenwich sidereal time, in degrees: how far the Earth has turned against the stars.

例

import { frameAt, type Frame } from "@johnmorrisdotca/chikyu-earth/space";

const frame: Frame = frameAt(Date.UTC(2026, 10, 2, 12));
console.log(Object.keys(frame.planets).length, frame.spin.toFixed(0));
8 222

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。