detailOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The strength and stretch of a body's generic fine detail: its own detail, else the table's for a body that is smooth (the gas giants, Venus, Titan) or the rocky default.
インポート
import { detailOf } from "@johnmorrisdotca/wakusei-planets/look";
定義
function detailOf(look: BodyLook): { amount: number; stretch: number; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
look | BodyLook | The body's look. |
戻り値
{ amount: number; stretch: number; }
How strong it is (0 to 1) and how much it is stretched along the lines of latitude.
例
import { detailOf, lookOf } from "@johnmorrisdotca/wakusei-planets/look";
const look = lookOf("mars");
console.log(look === undefined ? "no look" : detailOf(look).amount);no look出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。