CortidQCT
1.2.2.52
|
Size type for a 3D voxel. More...
#include <VolumeSize.h>
Public Member Functions | |
constexpr float | operator[] (std::size_t idx) const noexcept |
subscript operator for dimension access More... | |
std::size_t & | operator[] (std::size_t idx) noexcept |
subscript operator for dimension access More... | |
constexpr std::size_t | linear () const noexcept |
Returns the linear size (i.e. width * height * depth) | |
Comparison operators | |
constexpr bool | operator== (VolumeSize const &rhs) const |
constexpr bool | operator!= (VolumeSize const &rhs) const |
Public Attributes | |
std::size_t | width = 0 |
Size along the x-axis. | |
std::size_t | height = 0 |
Size along the y-axis. | |
std::size_t | depth = 0 |
Size along the z-axis. | |
Size type for a 3D voxel.
|
inlinenoexcept |
subscript operator for dimension access
Order is:
idx | Index |
idx >= 0 && idx < 3
|
inlinenoexcept |
subscript operator for dimension access
Order is:
idx | Index |
idx >= 0 && idx < 3