pickBells関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Which count engines burn: from the middle out, and a ring that is only partly used has them evenly round it, so three of a Falcon 9's nine are the middle one and two opposite. A source says how many; where they stand is this rule.
インポート
import { pickBells } from "@johnmorrisdotca/uchusen-rockets";
定義
function pickBells(bells: readonly Bell[], count: number): Bell[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
bells | readonly Bell[] | All the bells of a part. |
count | number | How many burn. |
戻り値
Bell[]
The bells that burn.
例
import { build } from "@johnmorrisdotca/uchusen-rockets/build";
import { bellsOf, pickBells } from "@johnmorrisdotca/uchusen-rockets";
const booster = build({ rocket: "falcon-9", variant: "block-5" }).parts[0];
console.log(booster ? pickBells(bellsOf(booster.pieces), 3).length : 0);3出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。