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));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。