A rectangle in is a Cartesian product of intervals.
Alternatively, a rectangle can be described by two points and in , such that
.
In this representation, is called the minimum point, and is called the maximum point.
In Pastel, a rectangle is modeled with the AlignedBox<integer, N>
class using the min-max representation. The minimum point and the
maximum point are initialized to infinity\-(integer)Infinity()
, respectively, to represent an empty rectangle.
The same class template is used to represent axis-aligned boxes in ,
by providing a type modeling the Real concept. The PastelGeometry
library takes this view further.