summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikko Pulkki <mikko.pulkki@mapbox.com>2020-04-29 12:26:57 +0300
committerMikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com>2020-05-02 17:07:02 +0300
commitc2294ad68d0ac1a3f62cc327cc295c62c4b286eb (patch)
tree883bda2543f4f2ab07e7cfd1e493c128cde4cd7d /include
parent0895c698d95d8ea35cb7dc35f667736f26f0e098 (diff)
downloadqtlocation-mapboxgl-c2294ad68d0ac1a3f62cc327cc295c62c4b286eb.tar.gz
Move vector types to a public header
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/vectors.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mbgl/util/vectors.hpp b/include/mbgl/util/vectors.hpp
new file mode 100644
index 0000000000..90371284d4
--- /dev/null
+++ b/include/mbgl/util/vectors.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <array>
+
+namespace mbgl {
+
+using vec2 = std::array<double, 2>;
+using vec3 = std::array<double, 3>;
+using vec3f = std::array<float, 3>;
+using vec3i = std::array<int, 3>;
+using vec4 = std::array<double, 4>;
+
+} // namespace mbgl \ No newline at end of file