diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-04-01 19:03:01 -0700 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2015-04-01 19:03:01 -0700 |
commit | 1d50485e5b824d2608aeba2568f71ff5e4ec217d (patch) | |
tree | 5b53b5a0f12d880c4b33e492ac2bf323d812afcf /src/mbgl/text/collision_feature.hpp | |
parent | c200053951bc3e2b152d38fbf2f2c5e63ed5dddc (diff) | |
download | qtlocation-mapboxgl-1d50485e5b824d2608aeba2568f71ff5e4ec217d.tar.gz |
port bboxifyLabel from -js
Diffstat (limited to 'src/mbgl/text/collision_feature.hpp')
-rw-r--r-- | src/mbgl/text/collision_feature.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/collision_feature.hpp b/src/mbgl/text/collision_feature.hpp index a16f58c8ed..9d8a426625 100644 --- a/src/mbgl/text/collision_feature.hpp +++ b/src/mbgl/text/collision_feature.hpp @@ -9,11 +9,11 @@ namespace mbgl { class CollisionBox { public: - explicit CollisionBox(const Anchor &_anchor, float _x1, float _y1, float _x2, float _y2, float _maxScale) : + explicit CollisionBox(const vec2<float> &_anchor, float _x1, float _y1, float _x2, float _y2, float _maxScale) : anchor(_anchor), x1(_x1), y1(_y1), x2(_x2), y2(_y2), maxScale(_maxScale) {} // the box is centered around the anchor point - const Anchor anchor; + const vec2<float> anchor; // distances to the edges from the anchor const float x1; |