13# if defined(__GNUC__) && (__GNUC__ >= 3)
30#define _MUL 950706376UL
31#define _MOD 2147483647UL
34 size_t res = (ulong(p[0] *
_MUL)) %
_MOD;
35 res = ((res + ulong(p[1]) *
_MUL)) %
_MOD;
36 return ((res + ulong(p[2]) *
_MUL)) %
_MOD;
72 Cell *found_cell =
nullptr;
74 GridHashTable::const_iterator found =
_cells.find(p);
75 if (found !=
_cells.end()) {
76 found_cell = (*found).second;
Base class to define a cell grid surrounding the bounding box of the scene.
map< Vec3u, Cell * > GridHashTable
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
virtual Cell * getCell(const Vec3u &p)
virtual void fillCell(const Vec3u &p, Cell &cell)
VecMat::Vec3< uint > Vec3u
VecMat::Vec3< real > Vec3r
size_t operator()(const Vec3u &p) const