diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-10 11:50:04 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-11-11 16:59:49 +0200 |
commit | e2052ea3e46272f5b0eb26643c0d7e70bad46557 (patch) | |
tree | 6f06237a889bc740972845d65d178908d894159a /src/mbgl/map/transform.hpp | |
parent | e5c460f2db3f7506f4fc38b16747f0ace9151017 (diff) | |
download | qtlocation-mapboxgl-e2052ea3e46272f5b0eb26643c0d7e70bad46557.tar.gz |
[core] Added PrecisionPoint to represent pixel points
Diffstat (limited to 'src/mbgl/map/transform.hpp')
-rw-r--r-- | src/mbgl/map/transform.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/transform.hpp b/src/mbgl/map/transform.hpp index a72e9f24ef..06a7487582 100644 --- a/src/mbgl/map/transform.hpp +++ b/src/mbgl/map/transform.hpp @@ -27,7 +27,7 @@ public: void easeTo(const CameraOptions options); // Position - void moveBy(double dx, double dy, const Duration& = Duration::zero()); + void moveBy(const PrecisionPoint&, const Duration& = Duration::zero()); void setLatLng(LatLng latLng, const Duration& = Duration::zero()); void setLatLng(LatLng latLng, vec2<double> point, const Duration& duration = Duration::zero()); void setLatLngZoom(LatLng latLng, double zoom, const Duration& = Duration::zero()); @@ -66,7 +66,7 @@ public: bool isPanning() const { return state.isPanning(); } private: - void _moveBy(double dx, double dy, const Duration& = Duration::zero()); + void _moveBy(const PrecisionPoint&, const Duration& = Duration::zero()); void _setScale(double scale, double cx, double cy, const Duration& = Duration::zero()); void _setScaleXY(double new_scale, double xn, double yn, const Duration& = Duration::zero()); void _easeTo(CameraOptions options, const double new_scale, const double new_angle, |