afl::Locator< D > Class Template Reference

#include <qhullwrapper.h>

List of all members.

Public Member Functions

 Locator (size_t n, const ddf::Node *min, const ddf::Node *max)
size_t locate (const ddf::Node &x) const
size_t locate (const Point &x) const
std::vector< size_t > surround (size_t x, int l) const
size_t getSide ()


Detailed Description

template<size_t D>
class afl::Locator< D >

a helper class to convert a point in space to a hash.


Constructor & Destructor Documentation

template<size_t D>
afl::Locator< D >::Locator size_t  n,
const ddf::Node min,
const ddf::Node max
[inline]
 

constructor

Parameters:
n the number of points in the array to locate over. This assumes that each side of the hyper-box has n^{1/D}+1 cells along it.
min the minimum point of the bounding box of the space.
max the maximum point of the bounding box of the space.


Member Function Documentation

template<size_t D>
size_t afl::Locator< D >::getSide  )  [inline]
 

Returns:
the number of cells on each side of the hash table

template<size_t D>
size_t afl::Locator< D >::locate const Point x  )  const [inline]
 

converts a point to a hash so that all points in the same vicinity get close hashes

Parameters:
x the point's locations
Returns:
a hash of the point's location in space

template<size_t D>
size_t afl::Locator< D >::locate const ddf::Node x  )  const [inline]
 

converts a point to a hash so that all points in the same vicinity get close hashes

Parameters:
x the point's locations
Returns:
a hash of the point's location in space

template<size_t D>
std::vector<size_t> afl::Locator< D >::surround size_t  x,
int  l
const
 

gets the surrounding elements to a point, at a distance of l layers

Parameters:
x the cell of the point to find the surrounding cells to
l the layer to retreive
Returns:
a vector of the indices that surround x


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:51 2006 for afl by  doxygen 1.4.6