Represents a cell in a spatial grid. More...
#include <distances.h>
Public Member Functions | |
| bool | operator== (const GridCell &other) const |
| Compares two GridCell objects for equality. | |
Public Attributes | |
| int | x |
| int | y |
| The x and y coordinates of the grid cell. | |
Represents a cell in a spatial grid.
A GridCell is defined by its integer coordinates (x, y) and is used in spatial hashing to partition a 2D space into discrete cells.
|
inline |
| int GridCell::x |
| int GridCell::y |
The x and y coordinates of the grid cell.