diff options
author | Mikko Pulkki <mikko.pulkki@mapbox.com> | 2020-04-29 12:26:57 +0300 |
---|---|---|
committer | Mikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com> | 2020-05-02 17:07:02 +0300 |
commit | c2294ad68d0ac1a3f62cc327cc295c62c4b286eb (patch) | |
tree | 883bda2543f4f2ab07e7cfd1e493c128cde4cd7d /include/mbgl | |
parent | 0895c698d95d8ea35cb7dc35f667736f26f0e098 (diff) | |
download | qtlocation-mapboxgl-c2294ad68d0ac1a3f62cc327cc295c62c4b286eb.tar.gz |
Move vector types to a public header
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/util/vectors.hpp | 13 |
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 |