libCZI
Reading and Writing CZI documents made easy
|
A rectangle (with integer coordinates). More...
#include <libCZI_Pixels.h>
Public Member Functions | |
void | Invalidate () |
Invalidates this object. | |
bool | IsValid () const |
Returns a boolean indicating whether this rectangle contains valid information. | |
bool | IsNonEmpty () const |
Returns a boolean indicating whether this rectangle is valid and non-empty. | |
bool | IntersectsWith (const IntRect &r) const |
IntRect | Intersect (const IntRect &r) const |
Static Public Member Functions | |
static IntRect | Intersect (const IntRect &a, const IntRect &b) |
A rectangle (with integer coordinates).
Calculate the intersection of the two specified rectangle.
a | The first rectangle. |
b | The second rectangle. |
Calculate the intersection with the specified rectangle.
r | The rectangle for which the intersection is to be calculated. |
|
inline |
Determine whether this rectangle intersects with the specified one.
r | The other rectangle. |