A rectangle (with integer coordinates).
More...
#include <libCZI_Pixels.h>
|
int | x |
| The x-coordinate of the upper-left point of the rectangle.
|
|
int | y |
| The y-coordinate of the upper-left point of the rectangle.
|
|
int | w |
| The width of the rectangle.
|
|
int | h |
| The height of the rectangle.
|
|
A rectangle (with integer coordinates).
◆ Intersect() [1/2]
Calculate the intersection of the two specified rectangle.
- Parameters
-
a | The first rectangle. |
b | The second rectangle. |
- Returns
- A rectangle which is the intersection of the two rectangles. If the two rectangles do not intersect, an empty rectangle is returned (width=height=0).
◆ Intersect() [2/2]
Calculate the intersection with the specified rectangle.
- Parameters
-
r | The rectangle for which the intersection is to be calculated. |
- Returns
- A rectangle which is the intersection of the two rectangles. If the two rectangles do not intersect, an empty rectangle is returned (width=height=0).
◆ IntersectsWith()
bool libCZI::IntRect::IntersectsWith |
( |
const IntRect & |
r | ) |
const |
|
inline |
Determine whether this rectangle intersects with the specified one.
- Parameters
-
- Returns
- True if the two rectangles intersect, false otherwise.
The documentation for this struct was generated from the following file: