placeSun関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Sun, from the Earth's centre: in a compressed view always 44 Earth radii away, in its real direction.
インポート
import { placeSun } from "@johnmorrisdotca/chikyu-earth/space";
定義
function placeSun(mode: ScaleMode, geo: Vec3): Vec3
引数
| 名前 | 型 | 説明 |
|---|---|---|
mode | ScaleMode | The scale. |
geo | Vec3 | The Sun's place in astronomical units from the Earth's centre. |
戻り値
Vec3
Where to draw it, in Earth radii.
例
import { placeSun } from "@johnmorrisdotca/chikyu-earth/space";
console.log(placeSun("compressed", [1, 0, 0]));[ 44, 0, 0 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。