CortidQCT  1.2.2.52
Public Member Functions | Public Attributes | List of all members
CortidQCT::VoxelSize Struct Reference

Size type for a 3D voxel. More...

#include <VoxelSize.h>

Public Member Functions

constexpr float operator[] (std::size_t idx) const noexcept
 subscript operator for dimension access More...
 
float & operator[] (std::size_t idx) noexcept
 subscript operator for dimension access More...
 

Public Attributes

float width = 0
 Size along the x-axis.
 
float height = 0
 Size along the y-axis.
 
float depth = 0
 Size along the z-axis.
 

Detailed Description

Size type for a 3D voxel.

Member Function Documentation

constexpr float CortidQCT::VoxelSize::operator[] ( std::size_t  idx) const
inlinenoexcept

subscript operator for dimension access

Order is:

  • 0: width
  • 1: height
  • 2: depth
Parameters
idxIndex
Precondition
idx >= 0 && idx < 3
Returns
value of the indexed dimension
float& CortidQCT::VoxelSize::operator[] ( std::size_t  idx)
inlinenoexcept

subscript operator for dimension access

Order is:

  • 0: width
  • 1: height
  • 2: depth
Parameters
idxIndex
Precondition
idx >= 0 && idx < 3
Returns
reference to indexed dimension

The documentation for this struct was generated from the following file: