Recast Navigation
Navigation-mesh Toolset for Games
dtProximityGrid Class Reference

#include <DetourProximityGrid.h>

Public Member Functions

 dtProximityGrid ()
 
 ~dtProximityGrid ()
 
bool init (const int poolSize, const float cellSize)
 
void clear ()
 
void addItem (const unsigned short id, const float minx, const float miny, const float maxx, const float maxy)
 
int queryItems (const float minx, const float miny, const float maxx, const float maxy, unsigned short *ids, const int maxIds) const
 
int getItemCountAt (const int x, const int y) const
 
const int * getBounds () const
 
float getCellSize () const
 

Constructor & Destructor Documentation

◆ dtProximityGrid()

dtProximityGrid::dtProximityGrid ( )

◆ ~dtProximityGrid()

dtProximityGrid::~dtProximityGrid ( )

Member Function Documentation

◆ addItem()

void dtProximityGrid::addItem ( const unsigned short  id,
const float  minx,
const float  miny,
const float  maxx,
const float  maxy 
)

◆ clear()

void dtProximityGrid::clear ( )

◆ getBounds()

const int* dtProximityGrid::getBounds ( ) const
inline

◆ getCellSize()

float dtProximityGrid::getCellSize ( ) const
inline

◆ getItemCountAt()

int dtProximityGrid::getItemCountAt ( const int  x,
const int  y 
) const

◆ init()

bool dtProximityGrid::init ( const int  poolSize,
const float  cellSize 
)

◆ queryItems()

int dtProximityGrid::queryItems ( const float  minx,
const float  miny,
const float  maxx,
const float  maxy,
unsigned short *  ids,
const int  maxIds 
) const

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