RingBand型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One band of a ring system, in kilometres from the planet's centre: how much light it stops (alpha, 0 to 1) and how bright it is (tone, 0 dark, 1 bright).
インポート
import type { RingBand } from "@johnmorrisdotca/wakusei-planets";
定義
interface RingBand {
from: number;
to: number;
alpha: number;
tone: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
from | number | |
to | number | |
alpha | number | |
tone | number |
例
import { BODIES, type RingBand } from "@johnmorrisdotca/wakusei-planets";
const bands: readonly RingBand[] = BODIES.saturn.rings ?? [];
console.log(bands.length, bands[2]?.from);7 91975出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。