Go to the documentation of this file.
27 Rect(
double left,
double bottom,
double width,
double height);
37 void getRect(
double* x,
double* y,
double* w,
double* h)
const;
39 double left(
void)
const {
return _x1; }
40 double right(
void)
const {
return _x2; }
41 double bottom(
void)
const {
return _y1; }
42 double top(
void)
const {
return _y2; }
44 double width(
void)
const {
return std::abs(_x2 - _x1); }
45 double height(
void)
const {
return std::abs(_y2 - _y1); }
60 void setSize(
double width,
double height);
Geom::Pnt2d bottomLeft(void) const
Definition: Rect.h:47
Geom::Pnt2d topRight(void) const
Definition: Rect.h:50
Geom::Pnt2d center(void) const
Definition: Rect.h:51
double left(void) const
Definition: Rect.h:39
void moveCenter(const Pnt &p)
void unite(const Rect &t)
Geom::Pnt2d bottomRight(void) const
Definition: Rect.h:48
Geom::Pnt2d topLeft(void) const
Definition: Rect.h:49
bool contains(const Geom::Pnt &point) const
void setWidth(double w)
Definition: Rect.h:58
Rect united(const Rect &r) const
void moveCenter(double x, double y)
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void translate(double dx, double dy)
double right(void) const
Definition: Rect.h:40
void setHeight(double h)
Definition: Rect.h:59
double bottom(void) const
Definition: Rect.h:41
Rect & operator|=(const Rect &r)
void setLeft(double left)
Rect operator|(const Rect &r) const
void setRight(double right)
bool intersects(const Geom::Rect &r) const
void setSize(double width, double height)
Rect(double left, double bottom, double width, double height)
double top(void) const
Definition: Rect.h:42
double height(void) const
Definition: Rect.h:45
void shrink(double value)
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:34
void getRect(double *x, double *y, double *w, double *h) const
Rect(const Pnt2d &bottomleft, const Pnt2d &topright)
double width(void) const
Definition: Rect.h:44
void setBottom(double bottom)
Definition: PropertyContainer.h:33
Rect normalized(void) const