zonesAcross関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How many zones along each axis a map of cells is cut into: a flat map by 2, 3 or 4, a solid by 2 or 3.
インポート
import { zonesAcross } from "@johnmorrisdotca/meikyuu";
定義
function zonesAcross(cells: number, dimensions: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
cells | number | A cell-index path or total count specified by this signature. |
dimensions | number | The number of coordinate dimensions. |
戻り値
number
How many zones along each axis a map of cells is cut into: a flat map by 2, 3 or 4, a solid by 2 or 3.
例
import { zonesAcross } from "@johnmorrisdotca/meikyuu";
console.log(zonesAcross(25,2));2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。