ARM Compute Library
17.04
|
Class for specifying the size of an image or rectangle. More...
#include <Size2D.h>
Public Member Functions | |
Size2D () | |
Default constructor. More... | |
Size2D (size_t w, size_t h) | |
Constructor. More... | |
Size2D (const Size2D &size) | |
Constructor. More... | |
Size2D & | operator= (const Size2D &size) |
Copy assignment. More... | |
size_t | area () const |
The area of the image or rectangle calculated as (width * height) More... | |
Data Fields | |
size_t | width |
Width of the image region or rectangle. More... | |
size_t | height |
Height of the image region or rectangle. More... | |
|
inline |
Default constructor.
Definition at line 36 of file Size2D.h.
|
inline |
Constructor.
Initializes "width" and "height" respectively with "w" and "h"
[in] | w | Width of the image or rectangle |
[in] | h | Height of the image or rectangle |
Definition at line 45 of file Size2D.h.
Constructor.
Initializes "width" and "height" with the dimensions of "size"
[in] | size | Size data object |
Definition at line 53 of file Size2D.h.
|
inline |
The area of the image or rectangle calculated as (width * height)
Definition at line 74 of file Size2D.h.
References Size2D::height, and Size2D::width.
Copy assignment.
[in] | size | Constant reference input "Size2D" data object to copy |
Definition at line 63 of file Size2D.h.
References Size2D::height, and Size2D::width.
size_t height |
Height of the image region or rectangle.
Definition at line 81 of file Size2D.h.
Referenced by Size2D::area(), and Size2D::operator=().
size_t width |
Width of the image region or rectangle.
Definition at line 80 of file Size2D.h.
Referenced by Size2D::area(), and Size2D::operator=().