OpenLexocad
27.0
|
#include <Rect.h>
Public Member Functions | |
Rect () | |
Rect (const Pnt &bottomleft, const Pnt &topright) | |
Rect (double left, double bottom, double width, double height) | |
bool | isNull (void) const |
bool | isEmpty (void) const |
bool | isValid (void) const |
void | setNull (void) |
void | makeSingular (void) |
void | getRect (double *x, double *y, double *w, double *h) const |
double | left (void) const |
double | right (void) const |
double | bottom (void) const |
double | top (void) const |
double | width (void) const |
double | height (void) const |
Pnt | bottomLeft (void) const |
Pnt | bottomRight (void) const |
Pnt | topLeft (void) const |
Pnt | topRight (void) const |
Pnt | center (void) const |
void | setLeft (double left) |
void | setRight (double right) |
void | setBottom (double bottom) |
void | setTop (double top) |
void | setWidth (double w) |
void | setHeight (double h) |
void | setSize (double width, double height) |
void | moveCenter (const Pnt &p) |
void | moveCenter (double x, double y) |
void | grow (double value) |
void | shrink (double value) |
void | translate (double dx, double dy) |
Rect | operator| (const Rect &r) const |
Rect & | operator|= (const Rect &r) |
void | unite (const Rect &t) |
Rect | united (const Rect &r) const |
Rect | normalized (void) const |
bool | contains (const Geom::Pnt &point) const |
bool | intersects (const Geom::Rect &r) const |
An axis-aligned 2D rectangle
Geom::Rect::Rect | ( | ) |
Geom::Rect::Rect | ( | double | left, |
double | bottom, | ||
double | width, | ||
double | height | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
bool Geom::Rect::contains | ( | const Geom::Pnt & | point | ) | const |
void Geom::Rect::getRect | ( | double * | x, |
double * | y, | ||
double * | w, | ||
double * | h | ||
) | const |
void Geom::Rect::grow | ( | double | value | ) |
|
inline |
bool Geom::Rect::intersects | ( | const Geom::Rect & | r | ) | const |
bool Geom::Rect::isEmpty | ( | void | ) | const |
bool Geom::Rect::isNull | ( | void | ) | const |
bool Geom::Rect::isValid | ( | void | ) | const |
|
inline |
void Geom::Rect::makeSingular | ( | void | ) |
void Geom::Rect::moveCenter | ( | const Pnt & | p | ) |
void Geom::Rect::moveCenter | ( | double | x, |
double | y | ||
) |
Rect Geom::Rect::normalized | ( | void | ) | const |
|
inline |
void Geom::Rect::setBottom | ( | double | bottom | ) |
|
inline |
void Geom::Rect::setLeft | ( | double | left | ) |
void Geom::Rect::setNull | ( | void | ) |
void Geom::Rect::setRight | ( | double | right | ) |
void Geom::Rect::setSize | ( | double | width, |
double | height | ||
) |
void Geom::Rect::setTop | ( | double | top | ) |
|
inline |
void Geom::Rect::shrink | ( | double | value | ) |
|
inline |
|
inline |
|
inline |
void Geom::Rect::translate | ( | double | dx, |
double | dy | ||
) |
void Geom::Rect::unite | ( | const Rect & | t | ) |
|
inline |