38 #ifndef FCL_BROADPHASE_SPATIALHASH_INL_H 39 #define FCL_BROADPHASE_SPATIALHASH_INL_H 48 struct SpatialHash<double>;
53 : cell_size(cell_size_), scene_limit(scene_limit_)
71 std::vector<unsigned int> keys((max_x - min_x) * (max_y - min_y) * (max_z - min_z));
73 for(
int x = min_x; x < max_x; ++x)
75 for(
int y = min_y; y < max_y; ++y)
77 for(
int z = min_z; z < max_z; ++z)
S width() const
Width of the AABB.
std::vector< unsigned int > operator()(const AABB< S > &aabb) const
Vector3< S > max_
The max point in the AABB.
SaPCollisionManager< S >::SaPAABB * aabb
back pointer to SAP interval
S depth() const
Depth of the AABB.
Vector3< S > min_
The min point in the AABB.
S height() const
Height of the AABB.
SpatialHash(const AABB< S > &scene_limit_, S cell_size_)