summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-07-21 11:19:47 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-07-21 11:30:51 -0700
commit86336ed8383f408d8faf92b88267c8d7435394ce (patch)
tree9993191ddd0496a5f45bc09be0da2565e950d5ec /include
parentc76ef7700c5ef859e270562203cc1d9af2aea00c (diff)
downloadqtlocation-mapboxgl-86336ed8383f408d8faf92b88267c8d7435394ce.tar.gz
Flip name and units and sign of rotation API
Angle -> Bearing Radians -> Degrees Clockwise -> Counterclockwise
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 774e5e1292..78e7993db8 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -89,9 +89,9 @@ public:
// Rotation
void rotateBy(double sx, double sy, double ex, double ey, double duration = 0);
- void setAngle(double angle, double duration = 0);
- void setAngle(double angle, double cx, double cy);
- double getAngle() const;
+ void setBearing(double degrees, double duration = 0);
+ void setBearing(double degrees, double cx, double cy);
+ double getBearing() const;
void resetNorth();
void startRotating();
void stopRotating();