Template Struct index3d_t

Struct Documentation

template<typename cell_coord_t = int32_t>
struct index3d_t

Discrete index type for voxel or 3D grid maps, suitable for std::map and std::unordered_map, using mola::index3d_hash as hash type.

Public Functions

index3d_t() = default
inline index3d_t(cell_coord_t Cx, cell_coord_t Cy, cell_coord_t Cz) noexcept
inline bool operator==(const index3d_t<cell_coord_t> &o) const noexcept
inline bool operator!=(const index3d_t<cell_coord_t> &o) const noexcept
inline index3d_t operator+(const index3d_t &o) const noexcept
inline index3d_t operator-(const index3d_t &o) const noexcept

Public Members

cell_coord_t cx = 0
cell_coord_t cy = 0
cell_coord_t cz = 0