summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-16 15:53:27 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-19 12:05:16 +0200
commit98c36fc06edb99b2db20d474c4c3ec6bf51e219d (patch)
tree81512310f121366eb84c00e39e9faba9fea72181 /include/mbgl
parent0c6b1629efb85386c0197868b2764c14f3fba940 (diff)
downloadqtlocation-mapboxgl-98c36fc06edb99b2db20d474c4c3ec6bf51e219d.tar.gz
[core] CameraOptions receives and outputs angle and pitch as degrees, not radians
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/map/camera.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp
index 53b5b590b1..33722a0018 100644
--- a/include/mbgl/map/camera.hpp
+++ b/include/mbgl/map/camera.hpp
@@ -27,11 +27,10 @@ struct CameraOptions {
levels. */
optional<double> zoom;
- /** Bearing, measured in radians counterclockwise from true north. Wrapped
- to [−π rad, π rad). */
+ /** Bearing, measured in degrees from true north. Wrapped to [0, 360). */
optional<double> angle;
- /** Pitch toward the horizon measured in radians, with 0 rad resulting in a
+ /** Pitch toward the horizon measured in degrees , with 0 deg resulting in a
two-dimensional map. */
optional<double> pitch;
};