32 Rect(
double left,
double bottom,
double width,
double height);
35 bool isNull(
void)
const;
36 bool isEmpty(
void)
const;
37 bool isValid(
void)
const;
40 void makeSingular(
void);
42 void getRect(
double* x,
double* y,
double* w,
double* h)
const;
44 double left(
void)
const {
return _x1; }
45 double right(
void)
const {
return _x2; }
46 double bottom(
void)
const {
return _y1; }
47 double top(
void)
const {
return _y2; }
49 double width(
void)
const {
return abs(_x2 - _x1); }
50 double height(
void)
const {
return abs(_y2 - _y1); }
58 void setLeft(
double left);
59 void setRight(
double right);
60 void setBottom(
double bottom);
61 void setTop(
double top);
65 void setSize(
double width,
double height);
67 void moveCenter(
const Pnt& p);
68 void moveCenter(
double x,
double y);
69 void grow(
double value);
70 void shrink(
double value);
71 void translate(
double dx,
double dy);
77 void unite(
const Rect& t);
79 Rect normalized(
void)
const;
81 bool contains(
const Geom::Pnt& point)
const;
Geom::Pnt2d center(void) const
Definition: Rect.h:56
double left(void) const
Definition: Rect.h:44
Geom::Pnt2d bottomLeft(void) const
Definition: Rect.h:52
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
Geom::Pnt2d topRight(void) const
Definition: Rect.h:55
Geom::Pnt2d topLeft(void) const
Definition: Rect.h:54
Geom::Pnt2d bottomRight(void) const
Definition: Rect.h:53
void setWidth(double w)
Definition: Rect.h:63
double right(void) const
Definition: Rect.h:45
void setHeight(double h)
Definition: Rect.h:64
double bottom(void) const
Definition: Rect.h:46
double height(void) const
Definition: Rect.h:50
double top(void) const
Definition: Rect.h:47
double width(void) const
Definition: Rect.h:49
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:33