#include <rect.h>
Public Member Functions | |
Rect () | |
Rect (const Point &x) | |
Rect (const Point &min, const Point &max) | |
Rect (const value_type &x1, const value_type &y1) | |
Rect (const value_type &x1, const value_type &y1, const value_type &x2, const value_type &y2) | |
void | set_point (const Point &max) |
Rect & | expand (const Point &max) |
Rect & | expand (const Real &r) |
Rect & | expand_x (const Real &r) |
Rect & | expand_y (const Real &r) |
Rect & | set (const Point &min, const Point &max) |
Point | get_min () const |
Point | get_max () const |
bool | is_inside (const Point &x) |
Real | area () const |
Rect & | operator+= (const Vector &rhs) |
Rect & | operator-= (const Vector &rhs) |
Rect & | operator *= (const Real &rhs) |
Rect & | operator/= (Real rhs) |
Rect & | operator &= (const Rect &rhs) |
Rect & | operator|= (const Rect &rhs) |
Rect | operator+ (const Vector &rhs) const |
Rect | operator- (const Vector &rhs) const |
Rect | operator * (const Real &rhs) const |
Rect | operator/ (const Real &rhs) const |
Rect | operator & (const Rect &rhs) const |
Rect | operator| (const Rect &rhs) const |
bool | operator && (const Rect &rhs) const |
bool | is_valid () const |
Static Public Member Functions | |
static Rect | full_plane () |
static Rect | zero () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|