|
| OptRect () |
|
| OptRect (Rect const &a) |
|
| OptRect (Point const &a, Point const &b) |
|
| OptRect (Coord x0, Coord y0, Coord x1, Coord y1) |
|
| OptRect (OptInterval const &x_int, OptInterval const &y_int) |
|
| OptRect (Base const &b) |
|
| OptRect (IntRect const &r) |
|
| OptRect (OptIntRect const &r) |
|
Affine | transformTo (Rect const &viewport, Aspect const &aspect=Aspect()) |
|
bool | operator== (OptRect const &other) const |
|
bool | operator== (Rect const &other) const |
|
Coord | area () const |
| Compute the rectangle's area.
|
|
bool | hasZeroArea () const |
| Check whether the rectangle has zero area.
|
|
OptCRect | regularized () const |
| Returns an empty optional (testing false) if the rectangle has zero area.
|
|
bool | empty () const |
| Check for emptiness.
|
|
bool | intersects (CRect const &r) const |
| Check whether the rectangles have any common points.
|
|
bool | intersects (OptCRect const &r) const |
| Check whether the rectangles have any common points.
|
|
bool | contains (CRect const &r) const |
| Check whether the rectangle includes all points in the given rectangle.
|
|
bool | contains (OptCRect const &r) const |
| Check whether the rectangle includes all points in the given rectangle.
|
|
bool | contains (CPoint const &p) const |
| Check whether the given point is within the rectangle.
|
|
void | unionWith (CRect const &b) |
| Enlarge the rectangle to contain the argument.
|
|
void | unionWith (OptCRect const &b) |
| Enlarge the rectangle to contain the argument.
|
|
void | intersectWith (CRect const &b) |
| Leave only the area overlapping with the argument.
|
|
void | intersectWith (OptCRect const &b) |
| Leave only the area overlapping with the argument.
|
|
void | expandTo (CPoint const &p) |
| Create or enlarge the rectangle to contain the given point.
|
|
GenericOptRect< Coord > & | operator|= (OptCRect const &b) |
| Union with b.
|
|
GenericOptRect< Coord > & | operator&= (CRect const &b) |
| Intersect with b.
|
|
GenericOptRect< Coord > & | operator&= (OptCRect const &b) |
| Intersect with b.
|
|
bool | operator== (OptCRect const &other) const |
| Test for equality.
|
|
bool | operator== (CRect const &other) const |
|
| GenericOptRect ()=default |
|
| GenericOptRect (GenericRect< Coord > const &a) |
|
| GenericOptRect (CPoint const &a, CPoint const &b) |
|
| GenericOptRect (Coord x0, Coord y0, Coord x1, Coord y1) |
|
| GenericOptRect (OptCInterval const &x_int, OptCInterval const &y_int) |
| Creates an empty OptRect when one of the argument intervals is empty.
|
|
Axis-aligned rectangle that can be empty.
Definition at line 201 of file rect.h.