libosmscout
0.1
|
#include <Pixel.h>
Public Member Functions | |
std::string | GetDisplayText () const |
uint64_t | GetId () const |
Returns a unique number based on the coordinates of the pixel. More... | |
bool | operator!= (const Pixel &other) const |
bool | operator< (const Pixel &other) const |
std::ostream & | operator<< (std::ostream &stream) const |
bool | operator== (const Pixel &other) const |
Pixel ()=default | |
The default constructor creates an uninitialized instance (for performance reasons). More... | |
Pixel (uint32_t x, uint32_t y) | |
Public Attributes | |
uint32_t | x |
uint32_t | y |
Representation of a pixel on a display or a plane. Coordinates are non-negative, values are decimal.
|
inlinedefault |
The default constructor creates an uninitialized instance (for performance reasons).
|
inline |
|
inline |
Returns a unique number based on the coordinates of the pixel.
The bits of the coordinates are projected onto one number by interleaving the bits of the coordinates. Coordinates close in 2D space are thus likely clos ein one dimensional space, too.
References osmscout::InterleaveNumbers().
|
inline |
uint32_t osmscout::Pixel::x |
uint32_t osmscout::Pixel::y |