Public Member Functions | Private Attributes | List of all members
coal::detail::SpatialHash Struct Reference

Spatial hash function: hash an AABB to a set of integer values. More...

#include <spatial_hash.h>

Public Member Functions

std::vector< unsigned int > operator() (const AABB &aabb) const
 
 SpatialHash (const AABB &scene_limit_, CoalScalar cell_size_)
 

Private Attributes

CoalScalar cell_size
 
AABB scene_limit
 
unsigned int width [3]
 

Detailed Description

Spatial hash function: hash an AABB to a set of integer values.

Definition at line 49 of file coal/broadphase/detail/spatial_hash.h.

Constructor & Destructor Documentation

◆ SpatialHash()

coal::detail::SpatialHash::SpatialHash ( const AABB scene_limit_,
CoalScalar  cell_size_ 
)

Definition at line 48 of file coal/broadphase/detail/spatial_hash-inl.h.

Member Function Documentation

◆ operator()()

std::vector< unsigned int > coal::detail::SpatialHash::operator() ( const AABB aabb) const

Definition at line 56 of file coal/broadphase/detail/spatial_hash-inl.h.

Member Data Documentation

◆ cell_size

CoalScalar coal::detail::SpatialHash::cell_size
private

Definition at line 55 of file coal/broadphase/detail/spatial_hash.h.

◆ scene_limit

AABB coal::detail::SpatialHash::scene_limit
private

Definition at line 56 of file coal/broadphase/detail/spatial_hash.h.

◆ width

unsigned int coal::detail::SpatialHash::width[3]
private

Definition at line 57 of file coal/broadphase/detail/spatial_hash.h.


The documentation for this struct was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00