リファレンス · 日付ごとの太陽・月・惑星の位置を、二つの縮尺で。カメラの計算つき
ScaleMode型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The scale the space view is drawn in: compressed squeezes the distances so the Moon, the Sun and Neptune fit one view, and true keeps the real ones.
インポート
import type { ScaleMode } from "@johnmorrisdotca/wakusei-planets/space";
定義
type ScaleMode = "compressed" | "true";
例
import { placeMoon, type ScaleMode } from "@johnmorrisdotca/wakusei-planets/space";
const mode: ScaleMode = "compressed";
console.log(placeMoon(mode, [0.00257, 0, 0]));[ 10, 0, 0 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。