diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-10-16 15:53:27 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-10-19 12:05:16 +0200 |
commit | 98c36fc06edb99b2db20d474c4c3ec6bf51e219d (patch) | |
tree | 81512310f121366eb84c00e39e9faba9fea72181 /include/mbgl | |
parent | 0c6b1629efb85386c0197868b2764c14f3fba940 (diff) | |
download | qtlocation-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.hpp | 5 |
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; }; |