KrisLibrary
1.0.0
|
Iterator over a 2D area grid. More...
#include <AreaGrid.h>
Public Member Functions | |
AreaGridIterator (const Array2D< T > &cells, const AABB2D &bb) | |
void | setRange (const IntPair &bmin, const IntPair &bmax) |
const T & | operator* () const |
T & | operator* () |
const IntPair & | getIndex () const |
void | operator++ () |
bool | isDone () const |
void | getCell (AABB2D &cell) const |
void | getCellCenter (Vector2 &c) const |
Public Attributes | |
const Array2D< T > & | cells |
const AABB2D & | bb |
Array2D< T >::iterator | it |
IntPair | lo |
IntPair | hi |
IntPair | index |
Vector2 | cellCorner |
Vector2 | cellSize |
Vector2 | bbMin |
Iterator over a 2D area grid.
Allows quick iteration and access to the 2D cell. Use the ++ operator until isDone() return true.