compress関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The same direction at a compressed distance from the Earth: the Moon is 10 Earth radii away, and a body k times further than the Moon is k^0.25 times as far here.
インポート
import { compress } from "@johnmorrisdotca/chikyu-earth/space";
定義
function compress(v: Vec3): Vec3
引数
| 名前 | 型 | 説明 |
|---|---|---|
v | Vec3 | The place, in astronomical units from the Earth's centre. |
戻り値
Vec3
The place in Earth radii, compressed; the centre stays at the centre.
例
import { compress } from "@johnmorrisdotca/chikyu-earth/space";
console.log(compress([0.00257, 0, 0]), compress([0, 0, 0]));[ 10, 0, 0 ] [ 0, 0, 0 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。