diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-12 12:38:12 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-17 13:20:25 -0700 |
commit | 7e5d0ff49e2b5a6a3caa45464d8056e93431d780 (patch) | |
tree | 665519111b6877ccab34d02831dc66d09b4e75ac /src/mbgl/map/transform_state.hpp | |
parent | 3e21e3887aa08ea32e4370b8c6e990d9f8c4333f (diff) | |
download | qtlocation-mapboxgl-7e5d0ff49e2b5a6a3caa45464d8056e93431d780.tar.gz |
[core] Rewrite TileCoordinate in terms of geometry.hpp point
Diffstat (limited to 'src/mbgl/map/transform_state.hpp')
-rw-r--r-- | src/mbgl/map/transform_state.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/map/transform_state.hpp b/src/mbgl/map/transform_state.hpp index 970dda2613..438094a4c5 100644 --- a/src/mbgl/map/transform_state.hpp +++ b/src/mbgl/map/transform_state.hpp @@ -3,6 +3,7 @@ #include <mbgl/map/mode.hpp> #include <mbgl/util/geo.hpp> +#include <mbgl/util/geometry.hpp> #include <mbgl/util/constants.hpp> #include <mbgl/util/mat4.hpp> @@ -69,10 +70,8 @@ public: ScreenCoordinate latLngToScreenCoordinate(const LatLng&) const; LatLng screenCoordinateToLatLng(const ScreenCoordinate&, LatLng::WrapMode = LatLng::Unwrapped) const; - double xLng(double x, double worldSize) const; - double yLat(double y, double worldSize) const; - double lngX(double lon) const; - double latY(double lat) const; + Point<double> project(const LatLng&) const; + LatLng unproject(const Point<double>&, double worldSize, LatLng::WrapMode = LatLng::Unwrapped) const; private: bool rotatedNorth() const; |