This can be generalized to any number of dimensions. This process of sweeping out volumes can be formalized mathematically as a Minkowski sum: the "d"-dimensional hypercube is the Minkowski sum of "d" mutually perpendicular unit-length line segments, and is therefore an example of a zonotope.