added new helper methods

worked on gridWalker v3
This commit is contained in:
2017-10-17 13:01:26 +02:00
parent 556bbe8829
commit 3807c621c7
8 changed files with 299 additions and 42 deletions

View File

@@ -64,6 +64,9 @@ public:
/** get the node's index within its grid */
int getIdx() const {return _idx;}
/** get the x-th neighbor's index within its grid */
int getNeighborIdx(const int x) const {return _neighbors[x];}
/** get the number of neighbors for this node */
int getNumNeighbors() const {return _numNeighbors;}