isCoarse関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a piece belongs to the coarse level: a body of revolution that is part of the main body or has an outline (a hull, a bell, a collar's flange), or a solid that is at least a metre and a half every way (a container's box). Everything else is detail and is added in the fine pass.
インポート
import { isCoarse } from "@johnmorrisdotca/uchusen-rockets";
定義
function isCoarse(piece: Piece): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
piece | Piece | A piece of a module. |
戻り値
boolean
True for the coarse level.
例
import { isCoarse, KIT } from "@johnmorrisdotca/uchusen-rockets";
const pieces = KIT["tank-cryo-12"].pieces();
console.log(pieces.filter(isCoarse).length, "of", pieces.length);3 of 869出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。