本文へ移動

Chikyu Earth地球

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

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

目次

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

SatellitePainter型

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

The seam for drawing a followed satellite as a 3D model: the package ships no model, the page supplies them. has says whether there is a model for a satellite (by NORAD number: 25544 is the ISS); make makes it as a drawing of radius 1 (its middle at the origin, its long axis along +x, its top, the side that faces space, along +z, and its left along +y), at once or later (a promise); the view places it where the satellite is, points it the way it flies, sizes it to read and gives it the Sun's direction (light, update). null from make is no model: the satellite stays a dot.

インポート

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

定義

interface SatellitePainter {
    has(noradId: number): boolean;
    make(three: Three, noradId: number, context: PaintContext): BodyDrawing | null | Promise<BodyDrawing | null>;
}

メンバー

名前型説明
has(noradId: number): boolean
make(three: Three, noradId: number, context: PaintContext): BodyDrawing | null | Promise<BodyDrawing | null>

例

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

const painter: SatellitePainter = { has: (norad) => norad === 25544, make: async () => null };
console.log(painter.has(25544));

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

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