Represents a rectangle defined by two points: bottom-left and top-right. More...
#include <utils.hpp>
Public Member Functions | |
| Rectangle (Point leftDownBound, Point rightUpBound) | |
| Constructs a Rectangle object. | |
| bool | operator== (const Rectangle &r2) const |
| Equality operator for Rectangle. | |
Public Attributes | |
| Point | leftDownBound |
| Point | rightUpBound |
Represents a rectangle defined by two points: bottom-left and top-right.
Constructs a Rectangle object.
| leftDownBound | The bottom-left corner. |
| rightUpBound | The top-right corner. |
|
inline |
Equality operator for Rectangle.
| r2 | Another rectangle to compare with. |
| Point Rectangle::leftDownBound |
| Point Rectangle::rightUpBound |