diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-12-18 13:17:48 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-12-19 20:48:34 -0800 |
commit | a68589b6c7ace5d3fc9f03a1c44ae2f26c15df7e (patch) | |
tree | 370d3387035a2a032ac68192c7372e7fe14e087b /src/mbgl/map/transform_state.hpp | |
parent | 925687ab06892528f25fd4a79d27a55560634d96 (diff) | |
download | qtlocation-mapboxgl-a68589b6c7ace5d3fc9f03a1c44ae2f26c15df7e.tar.gz |
[core] Refined and commented flyTo
Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based.
Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched.
Fixes #3296.
Diffstat (limited to 'src/mbgl/map/transform_state.hpp')
-rw-r--r-- | src/mbgl/map/transform_state.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/map/transform_state.hpp b/src/mbgl/map/transform_state.hpp index fa6ed8b58b..9ae2f62a46 100644 --- a/src/mbgl/map/transform_state.hpp +++ b/src/mbgl/map/transform_state.hpp @@ -100,6 +100,9 @@ private: mat4 coordinatePointMatrix(double z) const; mat4 getPixelMatrix() const; + + void setLatLngZoom(const LatLng &latLng, double zoom); + void setScalePoint(const double scale, const PrecisionPoint &point); private: ConstrainMode constrainMode; |