TileKey¶
struct nmeasim::app::map::TileKey ยท Applications
Address of one tile: its zoom level and its column and row at that level.
Declared in src/app/map/tile_math.hpp (line 41)
Valid keys have zoom in [0, 30] and x and y in [0, 2^zoom); nothing checks this. Keys are ordered by zoom, then x, then y.
Summary¶
Public member functions
| Name | Description |
|---|---|
operator<=>() |
Compares two keys member by member in the order zoom, x, y. |
Public data members
| Name | Description |
|---|---|
zoom |
Zoom level of the tile. |
x |
Column, counted eastwards from longitude -180. |
y |
Row, counted southwards from the northern limit kMaxLatitudeDeg. |
Public member functions¶
operator<=>()¶
auto operator<=>(const TileKey&) const = default
Compares two keys member by member in the order zoom, x, y.
Returns auto: The ordering of the first member that differs, or equality.
Declared in src/app/map/tile_math.hpp:49
Public data members¶
zoom¶
int zoom{0}
Zoom level of the tile.
Declared in src/app/map/tile_math.hpp:42
x¶
int x{0}
Column, counted eastwards from longitude -180.
Declared in src/app/map/tile_math.hpp:43
y¶
int y{0}
Row, counted southwards from the northern limit kMaxLatitudeDeg.
Declared in src/app/map/tile_math.hpp:44