diff options
Diffstat (limited to 'include/llmr/map/vector_tile.hpp')
-rw-r--r-- | include/llmr/map/vector_tile.hpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/include/llmr/map/vector_tile.hpp b/include/llmr/map/vector_tile.hpp index 98f2a1ca38..67207563e3 100644 --- a/include/llmr/map/vector_tile.hpp +++ b/include/llmr/map/vector_tile.hpp @@ -2,6 +2,7 @@ #define LLMR_MAP_VECTOR_TILE #include <llmr/util/pbf.hpp> +#include <llmr/util/vec.hpp> #include <llmr/style/value.hpp> #include <vector> #include <map> @@ -15,24 +16,6 @@ class VectorTileLayer; struct pbf; -struct Coordinate { - struct null {}; - - Coordinate() : x(0), y(0) {} - Coordinate(int16_t x, int16_t y) : x(x), y(y) {} - Coordinate(null) : x(std::numeric_limits<int16_t>::min()), y(std::numeric_limits<int16_t>::min()) {} - int16_t x; - int16_t y; - - inline bool operator==(const Coordinate& other) const { - return x == other.x && y == other.y; - } - - inline operator bool() const { - return x != std::numeric_limits<int16_t>::min() && y != std::numeric_limits<int16_t>::min(); - } -}; - enum class FeatureType { Unknown = 0, Point = 1, |