Rectangle block definition defined by two points.
More...
#include <Cineon.h>
|
| Block () |
| Constructor. More...
|
|
| Block (const int x1, const int y1, const int x2, const int y2) |
| Constructor. More...
|
|
void | Set (const int x1, const int y1, const int x2, const int y2) |
| Set the block coordinates. More...
|
|
bool | Inside (const int x, const int y) const |
| Check to see if a point is within the block. More...
|
|
void | Check () |
| Rearrange coordinates if necessary so the first coordinate is upper left and the second is lower right. More...
|
|
Rectangle block definition defined by two points.
cineon::Block::Block |
( |
const int |
x1, |
|
|
const int |
y1, |
|
|
const int |
x2, |
|
|
const int |
y2 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
x1 | upper left x coordinate |
y1 | upper left y coordinate |
x2 | lower right x coordinate |
y2 | lower right y coordinate |
void cineon::Block::Check |
( |
| ) |
|
|
inline |
Rearrange coordinates if necessary so the first coordinate is upper left and the second is lower right.
bool cineon::Block::Inside |
( |
const int |
x, |
|
|
const int |
y |
|
) |
| const |
|
inline |
Check to see if a point is within the block.
- Parameters
-
x | x coordinate |
y | y coordinate |
- Returns
- true/false if coordinates within block
void cineon::Block::Set |
( |
const int |
x1, |
|
|
const int |
y1, |
|
|
const int |
x2, |
|
|
const int |
y2 |
|
) |
| |
|
inline |
Set the block coordinates.
- Parameters
-
x1 | upper left x coordinate |
y1 | upper left y coordinate |
x2 | lower right x coordinate |
y2 | lower right y coordinate |
The documentation for this struct was generated from the following file:
- /tmp/B.92ecc562-e5e3-49c8-b0a5-c7c9dfb207f9/BUILD/libcineon/libcineon/Cineon.h