BodyMoon型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One moon of a planet at a moment: its name, where it is from the planet's centre and how big it is, both in radii of the planet, in scene axes.
インポート
import type { BodyMoon } from "@johnmorrisdotca/chikyu-earth/space";
定義
interface BodyMoon {
name: string;
offset: Readonly<Vec3>;
radius: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | |
offset | readonly [number, number, number] | |
radius | number |
例
import type { BodyMoon } from "@johnmorrisdotca/chikyu-earth/space";
const io: BodyMoon = { name: "Io", offset: [5.9, 0, 0], radius: 0.0255 };
console.log(io.name);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。