diff options
Diffstat (limited to 'include/mbgl/util/mat4.hpp')
-rw-r--r-- | include/mbgl/util/mat4.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mbgl/util/mat4.hpp b/include/mbgl/util/mat4.hpp index 59f6e3ee00..ff8e65224c 100644 --- a/include/mbgl/util/mat4.hpp +++ b/include/mbgl/util/mat4.hpp @@ -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 |