CuboidFace型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One face of a cuboid: how many columns and rows of stickers it has as it is seen from outside, and where its stickers begin in the state.
インポート
import type { CuboidFace } from "@johnmorrisdotca/kyuubu/cuboid";
定義
type CuboidFace = {
face: CubeFace;
cols: number;
rows: number;
start: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
face | "U" | "R" | "F" | "D" | "L" | "B" | |
cols | number | |
rows | number | |
start | number |
例
import type { CuboidFace } from "@johnmorrisdotca/kyuubu/cuboid";
import { cuboidFaces } from "@johnmorrisdotca/kyuubu/cuboid";
const value: CuboidFace = cuboidFaces([2, 3, 3])[0]!;
console.log(value.face);U出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。