Public Member Functions | |
Rectangle (int x, int y, int width, int height) | |
int | get_x_min () const |
int | get_x_max () const |
int | get_y_min () const |
int | get_y_max () const |
int | get_abs_width () const |
int | get_abs_height () const |
void | set_rect (int x, int y, int width, int height) |
void | set_points (int x1, int y1, int x2, int y2) |
void | set_origin (int x, int y) |
void | set_destination (int x, int y) |
|
Returns rectangle's absolute height.
|
|
Returns rectangle's absolute width.
|
|
Returns rectangle's highest x.
|
|
Returns rectangle's lowest x.
|
|
Returns rectangle's highest y.
|
|
Returns rectangle's lowest y.
|
|
Set the other of two opposing corners.
|
|
Set one of two opposing corners.
|
|
Set two opposing corners.
|
|
Set rectangle by specifying one corner and with/height.
|