sameCuboidfunction
Whether two cuboids are the same puzzle turned about in the hand: the same three sides in any order.
Import it
import { sameCuboid } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
function sameCuboid(a: CuboidDims, b: CuboidDims): boolean
Parameters
| Name | Type | Description |
|---|---|---|
a | CuboidDims | The first cuboid’s three dimensions. |
b | CuboidDims | The second cuboid’s three dimensions. |
Returns
boolean
Whether two cuboids are the same puzzle turned about in the hand: the same three sides in any order.
Examples
import { sameCuboid } from "@johnmorrisdotca/kyuubu/cuboid";
console.log(sameCuboid([2, 3, 3], [3, 2, 3]));trueWhat it prints (run when this page was built)