38 #ifndef HPP_FCL_BROADPHASE_SPATIALHASH_INL_H 39 #define HPP_FCL_BROADPHASE_SPATIALHASH_INL_H 50 : cell_size(cell_size_), scene_limit(scene_limit_) {
65 std::vector<unsigned int> keys((max_x - min_x) * (max_y - min_y) *
68 for (
int x = min_x;
x < max_x; ++
x) {
69 for (
int y = min_y;
y < max_y; ++
y) {
70 for (
int z = min_z; z < max_z; ++z) {
Vec3f min_
The min point in the AABB.
FCL_REAL height() const
Height of the AABB.
SpatialHash(const AABB &scene_limit_, FCL_REAL cell_size_)
FCL_REAL depth() const
Depth of the AABB.
std::vector< unsigned int > operator()(const AABB &aabb) const
A class describing the AABB collision structure, which is a box in 3D space determined by two diagona...
Vec3f max_
The max point in the AABB.
FCL_REAL width() const
Width of the AABB.