19 #ifndef DETOURPROXIMITYGRID_H
20 #define DETOURPROXIMITYGRID_H
37 unsigned short* m_buckets;
46 bool init(
const int poolSize,
const float cellSize);
50 void addItem(
const unsigned short id,
51 const float minx,
const float miny,
52 const float maxx,
const float maxy);
54 int queryItems(
const float minx,
const float miny,
55 const float maxx,
const float maxy,
56 unsigned short* ids,
const int maxIds)
const;
60 inline const int*
getBounds()
const {
return m_bounds; }
68 #endif // DETOURPROXIMITYGRID_H
int getItemCountAt(const int x, const int y) const
Definition: DetourProximityGrid.cpp:178
float getCellSize() const
Definition: DetourProximityGrid.h:61
void clear()
Definition: DetourProximityGrid.cpp:91
int queryItems(const float minx, const float miny, const float maxx, const float maxy, unsigned short *ids, const int maxIds) const
Definition: DetourProximityGrid.cpp:135
~dtProximityGrid()
Definition: DetourProximityGrid.cpp:59
bool init(const int poolSize, const float cellSize)
Definition: DetourProximityGrid.cpp:65
int next(int i, int n)
Definition: DetourTileCacheBuilder.cpp:1072
dtProximityGrid()
Definition: DetourProximityGrid.cpp:49
void dtFreeProximityGrid(dtProximityGrid *ptr)
Definition: DetourProximityGrid.cpp:35
dtProximityGrid * dtAllocProximityGrid()
Definition: DetourProximityGrid.cpp:28
void addItem(const unsigned short id, const float minx, const float miny, const float maxx, const float maxy)
Definition: DetourProximityGrid.cpp:101
Definition: DetourProximityGrid.h:22
const int * getBounds() const
Definition: DetourProximityGrid.h:60