A 2D rectangular area, expressed in real (float) coordinates.
Public Member Functions | |
Rectangle () | |
Rectangle (const Rectangle &other) | |
Rectangle (float leftTopX, float leftTopY, float rightBottomX, float rightBottomY) | |
virtual | ~Rectangle () |
Rectangle & | operator= (const Rectangle &other) |
float | getLeftTopX () const |
float | getLeftTopY () const |
float | getRightBottomX () const |
float | getRightBottomY () const |
float | getWidth () const |
float | getHeight () const |
float | getAreaSize () const |
virtual TYPE | getType () const |
Get the TYPE of area this instance represents. More... | |
Public Member Functions inherited from Area | |
virtual | ~Area () |
Protected Attributes | |
float | left |
float | top |
float | right |
float | bottom |
Additional Inherited Members | |
Public Types inherited from Area | |
enum | TYPE { RECTANGLE, RECTANGLE_INT, INVALID } |
The types of area that a given instance of Area can represent. More... | |
Rectangle | ( | ) |
Rectangle | ( | float | leftTopX, |
float | leftTopY, | ||
float | rightBottomX, | ||
float | rightBottomY | ||
) |
|
virtual |
float getLeftTopX | ( | ) | const |
float getLeftTopY | ( | ) | const |
float getRightBottomX | ( | ) | const |
float getRightBottomY | ( | ) | const |
float getWidth | ( | ) | const |
float getHeight | ( | ) | const |
float getAreaSize | ( | ) | const |
|
virtual |
Get the TYPE of area this instance represents.
Implements Area.
|
protected |
|
protected |
|
protected |
|
protected |