[core] Get rid of mbgl/util/vec4 - use vec4 from vec.hpp instead

This commit is contained in:
Bruno de Oliveira Abinader
2016-02-09 12:47:38 +02:00
parent f3fc87261c
commit 1d984d2bb2
7 changed files with 52 additions and 106 deletions

View File

@@ -23,11 +23,13 @@
#ifndef MBGL_UTIL_MAT4
#define MBGL_UTIL_MAT4
#include <mbgl/util/vec.hpp>
#include <array>
namespace mbgl {
typedef std::array<double, 16> mat4;
using mat4 = std::array<double, 16>;
namespace matrix {
@@ -43,7 +45,9 @@ void rotate_z(mat4& out, const mat4& a, double rad);
void scale(mat4& out, const mat4& a, double x, double y, double z);
void multiply(mat4& out, const mat4& a, const mat4& b);
void transformMat4(vec4<double>& out, vec4<double>& a, mat4& m);
} // namespace matrix
} // namespace mbgl
#endif
#endif // MBGL_UTIL_MAT4

View File

@@ -122,4 +122,4 @@ struct vec4 {
} // namespace mbgl
#endif
#endif // MBGL_UTIL_VEC