template struct mola::index3d_hash
Overview
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).
#include <index3d_t.h> template <typename cell_coord_t = int32_t> struct index3d_hash { // methods std::size_t operator () (const index3d_t<cell_coord_t>& k) const; bool operator () (const index3d_t<cell_coord_t>& k1, const index3d_t<cell_coord_t>& k2) const; };
Methods
std::size_t operator () (const index3d_t<cell_coord_t>& k) const
Hash operator for unordered maps:
bool operator () (const index3d_t<cell_coord_t>& k1, const index3d_t<cell_coord_t>& k2) const
k1 < k2? for std::map containers