CuboidFacetype
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 it
import type { CuboidFace } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
type CuboidFace = {
face: CubeFace;
cols: number;
rows: number;
start: number;
};
Members
| Name | Type | Description |
|---|---|---|
face | "U" | "R" | "F" | "D" | "L" | "B" | |
cols | number | |
rows | number | |
start | number |
Examples
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);UWhat it prints (run when this page was built)