In geometry, a hyperrectangle, is the generalization of a rectangle and the rectangular cuboid to higher dimensions. A necessary and sufficient condition is that it is congruent to the Cartesian product of finite intervals. This means that a -dimensional rectangular solid has each of its edges equal to one of the closed intervals used in the definition. Every -cell is compact.