Public Member Functions | |
Rectangle (int xPoint, int yPoint, int w, int h) | |
Rectangle () | |
Rectangle (const Rectangle &rhs) | |
void | swap (Rectangle &rhs) |
~Rectangle () | |
Rectangle & | operator= (const Rectangle &rhs) |
bool | contains (int xPoint, int yPoint) |
bool | contains (const Point &point) |
bool | operator== (const Rectangle &rhs) |
Public Attributes | |
int | x |
int | y |
int | width |
int | height |
|
Creates a new Rectangle with specified parameters. |
|
Default constructor |
|
Copy constructor |
|
Default destructor |
|
Assignment operator |
|
Checks wether the given point lies in this Rectangle. |
|
Checks wether the given point lies in this Rectangle. |
|
Compare two Rectangles. |