16 const size_t p1 = 73856093;
17 const size_t p2 = 19349669;
18 const size_t p3 = 83492791;
19 return static_cast<size_t>((x[0] * p1) ^ (x[1] * p2) ^ (x[2] * p3));
23 static bool equal(
const Eigen::Vector3i& x1,
const Eigen::Vector3i& x2) {
return x1 == x2; }
Definition: flat_container.hpp:12
Spatial hashing function. Teschner et al., "Optimized Spatial Hashing for Collision Detection of Defo...
Definition: vector3i_hash.hpp:13
size_t operator()(const Eigen::Vector3i &x) const
Definition: vector3i_hash.hpp:15
static bool equal(const Eigen::Vector3i &x1, const Eigen::Vector3i &x2)
Definition: vector3i_hash.hpp:23
static size_t hash(const Eigen::Vector3i &x)
Definition: vector3i_hash.hpp:22