Bounding Rectangle in Two-Dimensional Space MbRect

The MbRect class is declared in the mb_rect.h file.

The MbRect bounding rectangle describes the dimensions of an extended object (a curve or several curves) in two-dimensional space and is defined by four numbers: left, right, bottom, top. The sides of the bounding rectangle are parallel to the axes of the coordinate system in which the rectangle is defined. The left and right numbers describe the minimum and maximum abscissa of the bounding rectangle, and the bottom and top numbers describe the minimum and maximum ordinate of the bounding rectangle:

../../../../_images/O.1.14.1.png

If the dimensions of an extended object are not defined, then the bounding rectangle is considered empty if left > right and bottom > top simultaneously. For an empty bounding rectangle the IsEmpty() method returns true.