Template Struct index3d_hash
Defined in File index3d_t.h
Struct Documentation
-
template<typename cell_coord_t = int32_t>
struct index3d_hash This implement the optimized hash from this paper:
Teschner, M., Heidelberger, B., Müller, M., Pomerantes, D., & Gross, M. H. (2003, November). Optimized spatial hashing for collision detection of deformable objects. In Vmv (Vol. 3, pp. 47-54).
Public Functions
-
inline std::size_t operator()(const index3d_t<cell_coord_t> &k) const noexcept
Hash operator for unordered maps:
-
inline bool operator()(const index3d_t<cell_coord_t> &k1, const index3d_t<cell_coord_t> &k2) const noexcept
k1 < k2? for std::map containers
-
inline std::size_t operator()(const index3d_t<cell_coord_t> &k) const noexcept