diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-03-01 14:17:21 +0000 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-03-01 20:58:54 +0000 |
commit | c6757b9a9b004c566c9ff0b0715d336e668e1410 (patch) | |
tree | 6ae5a7c7fb29f5d68e2fb9e94b8da892bacbad2e /src/mbgl/map/transform.cpp | |
parent | fde0ab98eedd77e652e1232605e4bc96f9fa65b9 (diff) | |
download | qtlocation-mapboxgl-c6757b9a9b004c566c9ff0b0715d336e668e1410.tar.gz |
[core] Added DEGREES_MAX as constant value
Diffstat (limited to 'src/mbgl/map/transform.cpp')
-rw-r--r-- | src/mbgl/map/transform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/transform.cpp b/src/mbgl/map/transform.cpp index 060c169d6d..74e43a62fe 100644 --- a/src/mbgl/map/transform.cpp +++ b/src/mbgl/map/transform.cpp @@ -122,7 +122,7 @@ void Transform::easeTo(const CameraOptions& camera, const AnimationOptions& anim Duration duration = animation.duration ? *animation.duration : Duration::zero(); const double startWorldSize = state.worldSize(); - state.Bc = startWorldSize / 360; + state.Bc = startWorldSize / util::DEGREES_MAX; state.Cc = startWorldSize / util::M2PI; const double startScale = state.scale; @@ -290,7 +290,7 @@ void Transform::flyTo(const CameraOptions &camera, const AnimationOptions &anima } const double startWorldSize = state.worldSize(); - state.Bc = startWorldSize / 360; + state.Bc = startWorldSize / util::DEGREES_MAX; state.Cc = startWorldSize / util::M2PI; state.panning = true; |