Represents a rectangular area of terrain cells for iteration. More...
#include <TerrainRectangleArea.h>
| Classes | |
| class | Iterator | 
| Iterator for traversing terrain cells in a rectangular area.  More... | |
| Public Member Functions | |
| TerrainRectangleArea (const Terrain *terrain, int xStart, int zStart, int xEnd, int zEnd) | |
| Constructs a rectangular area for iteration. | |
| Iterator | begin () const | 
| Returns an iterator to the beginning of the area. | |
| Iterator | end () const | 
| Returns an iterator to the end of the area. | |
| Private Attributes | |
| const Terrain * | pTerrain | 
| Pointer to the terrain. | |
| int | xStart | 
| int | zStart | 
| int | xEnd | 
| int | zEnd | 
| Start and end indices. | |
Represents a rectangular area of terrain cells for iteration.
The TerrainRectangleArea class allows iteration over a rectangular region of terrain cells, providing access to each cell's AABB and indices. Useful for spatial queries and collision checks.
| TerrainRectangleArea::TerrainRectangleArea | ( | const Terrain * | terrain, | 
| int | xStart, | ||
| int | zStart, | ||
| int | xEnd, | ||
| int | zEnd ) | 
Constructs a rectangular area for iteration.
| terrain | Pointer to the Terrain. | 
| xStart | Starting X index. | 
| zStart | Starting Z index. | 
| xEnd | Ending X index (inclusive). | 
| zEnd | Ending Z index (inclusive). | 
| TerrainRectangleArea::Iterator TerrainRectangleArea::begin | ( | ) | const | 
Returns an iterator to the beginning of the area.

| TerrainRectangleArea::Iterator TerrainRectangleArea::end | ( | ) | const | 
Returns an iterator to the end of the area.
