summaryrefslogtreecommitdiff
path: root/src/mbgl/util/mat3.hpp
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-08-14 19:34:13 +0300
committerAnsis Brammanis <brammanis@gmail.com>2015-08-24 18:41:50 -0400
commit554425b753c1eee6b6874f1ddde0c266a717c88e (patch)
tree85469fd9195538c314933f29b859c510793729ca /src/mbgl/util/mat3.hpp
parentbc92c2de3988a39d6def34617ade4afb5b82e214 (diff)
downloadqtlocation-mapboxgl-554425b753c1eee6b6874f1ddde0c266a717c88e.tar.gz
fix earthquakes in perspective view
Use higher precision for matrix calculations so that the map does not jump around while zooming.
Diffstat (limited to 'src/mbgl/util/mat3.hpp')
-rw-r--r--src/mbgl/util/mat3.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/util/mat3.hpp b/src/mbgl/util/mat3.hpp
index fa40751764..3a6aba5a11 100644
--- a/src/mbgl/util/mat3.hpp
+++ b/src/mbgl/util/mat3.hpp
@@ -27,14 +27,14 @@
namespace mbgl {
-typedef std::array<float, 9> mat3;
+typedef std::array<double, 9> mat3;
namespace matrix {
void identity(mat3& out);
-void translate(mat3& out, const mat3& a, float x, float y);
-void rotate(mat3& out, const mat3& a, float rad);
-void scale(mat3& out, const mat3& a, float x, float y);
+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);
}
}