diff options
Diffstat (limited to 'src/mbgl/util/mat3.hpp')
-rw-r--r-- | src/mbgl/util/mat3.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mbgl/util/mat3.hpp b/src/mbgl/util/mat3.hpp index ca4955fe5f..c4203c940b 100644 --- a/src/mbgl/util/mat3.hpp +++ b/src/mbgl/util/mat3.hpp @@ -26,7 +26,9 @@ namespace mbgl { -typedef std::array<double, 9> mat3; +using vec3 = std::array<double, 3>; +using vec3f = std::array<float, 3>; +using mat3 = std::array<double, 9>; namespace matrix { @@ -35,5 +37,7 @@ void translate(mat3& out, const mat3& a, double x, double y); void rotate(mat3& out, const mat3& a, double rad); void scale(mat3& out, const mat3& a, double x, double y); +void transformMat3f(vec3f& out, const vec3f& a, const mat3& m); + } // namespace matrix } // namespace mbgl |