Hermes
|
Holds 2-dimensional size. More...
Public Member Functions | |
HERMES_DEVICE_CALLABLE | Size3 () |
Default constructor. | |
HERMES_DEVICE_CALLABLE | Size3 (T size) |
Single value constructor. More... | |
HERMES_DEVICE_CALLABLE | Size3 (T _width, T _height, T _depth) |
Constructor. More... | |
HERMES_DEVICE_CALLABLE T | operator[] (int i) const |
Dimension size const access. More... | |
HERMES_DEVICE_CALLABLE T & | operator[] (int i) |
Dimension size access. More... | |
HERMES_DEVICE_CALLABLE Size3< T > | operator+ (const Size3< T > &b) const |
Addition. More... | |
HERMES_DEVICE_CALLABLE Size3< T > | operator- (const Size3< T > &b) const |
Subtraction. More... | |
HERMES_DEVICE_CALLABLE bool | operator== (const Size3< T > &b) const |
Dimension-wise comparison. More... | |
HERMES_DEVICE_CALLABLE bool | operator!= (const Size3< T > &b) const |
Dimension-wise comparison. More... | |
HERMES_DEVICE_CALLABLE T | total () const |
Computes total size area. More... | |
HERMES_DEVICE_CALLABLE Size2< T > | slice (int d1=0, int d2=1) const |
Gets 2-dimensional slice. More... | |
Public Attributes | |
T | width {0} |
0-th dimension size | |
T | height {0} |
1-th dimension size | |
T | depth {0} |
2-th dimension size | |
Holds 2-dimensional size.
T |
|
inlineexplicit |
Single value constructor.
size |
|
inline |
Constructor.
_width | |
_height | |
_depth |
|
inline |
Dimension-wise comparison.
b |
|
inline |
Addition.
b |
|
inline |
Subtraction.
b |
|
inline |
Dimension-wise comparison.
b |
|
inline |
Dimension size access.
i |
|
inline |
Dimension size const access.
i |
|
inline |
Gets 2-dimensional slice.
d1
and d2
must be inside interval [0,2] d1 | |
d2 |
|
inline |
Computes total size area.