cuboidStickerCountfunction
How many stickers a cuboid has: the area of its surface.
Import it
import { cuboidStickerCount } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
function cuboidStickerCount(dims: CuboidDims): number
Parameters
| Name | Type | Description |
|---|---|---|
dims | CuboidDims | The cuboid’s x, y and z dimensions, in that order. |
Returns
number
How many stickers a cuboid has: the area of its surface.
Examples
import { cuboidStickerCount } from "@johnmorrisdotca/kyuubu/cuboid";
const dims = [2, 3, 3] as const;
console.log(cuboidStickerCount(dims));42What it prints (run when this page was built)