From 98c36fc06edb99b2db20d474c4c3ec6bf51e219d Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 16 Oct 2018 15:53:27 +0200 Subject: [core] CameraOptions receives and outputs angle and pitch as degrees, not radians --- include/mbgl/map/camera.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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 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 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 pitch; }; -- cgit v1.2.1