Key for tiles used in TileCache.
More...
#include <TileCacheKey.h>
|
int32_t | x |
| The X coordinate.
|
|
int32_t | y |
| The Y coordinate.
|
|
Key for tiles used in TileCache.
This is used in TileCache to identify tiles.
- See also
- std::hash<carta::TileCacheKey>
◆ TileCacheKey() [1/2]
carta::TileCacheKey::TileCacheKey |
( |
| ) |
|
|
inline |
◆ TileCacheKey() [2/2]
carta::TileCacheKey::TileCacheKey |
( |
int32_t |
x, |
|
|
int32_t |
y |
|
) |
| |
|
inline |
Constructor from tile coordinates.
- Parameters
-
x | The X coordinate of the tile |
y | The Y coordinate of the tile |
◆ operator==()
bool carta::TileCacheKey::operator== |
( |
const TileCacheKey & |
other | ) |
const |
|
inline |
Equality operator.
- Parameters
-
- Returns
- Whether the keys are equal
Keys are equal if their coordinates are equal.
int32_t carta::TileCacheKey::x |
int32_t carta::TileCacheKey::y |
The documentation for this struct was generated from the following file: