Public Member Functions |
| Rect (Point cp0, Point cp1) |
| Rect (Point p0, double cwidth, double cheight) |
| Rect (double cx, double cy, double cwidth, double cheight) |
| Rect (const IRect &ir) |
Rect & | assign (Point p0, Point p1) |
Rect & | assign (Point p0, double cwidth, double cheight) |
Rect & | assign (double cx, double cy, double cwidth, double cheight) |
double | upper_x () const |
double | upper_y () const |
Point | upper_left () const |
Point | upper_right () const |
Point | lower_right () const |
Point | lower_left () const |
Point | ul () const |
Point | ur () const |
Point | lr () const |
Point | ll () const |
double | diagonal () const |
double | area () const |
Point | ul_tangent () const |
Point | ur_tangent () const |
Point | lr_tangent () const |
Point | ll_tangent () const |
Point | center () const |
Point | north () const |
Point | north_east () const |
Point | east () const |
Point | south_east () const |
Point | south () const |
Point | south_west () const |
Point | west () const |
Point | north_west () const |
bool | contains (const Point &point) const |
bool | operator== (const Rect &other) const |
bool | operator!= (const Rect &other) const |
bool | equals (const Rect &other, double epsilon=0.0) const |
double | dist2 (const Point &p) const |
double | dist (const Point &p) const |
Rect & | rect_union (const Rect &r) |
Rect & | add (const Point &p) |
Rect & | add_border (double b) |
Rect & | intersect (const Rect &r) |
bool | intersecting (const Rect &r) const |
Rect | intersection (const Rect &r) const |
bool | empty () const |
Point | anchor_point (AnchorType anchor) |
Rect & | translate (double deltax, double delty) |
Rect & | operator+ (const Point &p) |
Rect & | operator- (const Point &p) |
String | string () const |
Static Public Member Functions |
static Rect | create_anchored (AnchorType anchor, double width, double height) |
Public Attributes |
double | x |
double | y |
double | width |
double | height |