diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-10-25 15:48:29 -0700 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-10-25 15:48:29 -0700 |
commit | dbfa8dcc89ff55fa1f8366433d24b1a270e53a02 (patch) | |
tree | a68cd34e2197012c2b0ab9525bc747bc7c4c94e7 /src/mbgl/text/collision_tile.hpp | |
parent | 1216050f9c5c472f1c8edcc32447004a40680ec7 (diff) | |
parent | a4d259c33f9bb890bba97fd89552720e3e0ec09b (diff) | |
download | qtlocation-mapboxgl-dbfa8dcc89ff55fa1f8366433d24b1a270e53a02.tar.gz |
Merge branch 'master' into boundsj-release-ios-3.4.0-merge-master
Diffstat (limited to 'src/mbgl/text/collision_tile.hpp')
-rw-r--r-- | src/mbgl/text/collision_tile.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mbgl/text/collision_tile.hpp b/src/mbgl/text/collision_tile.hpp index dbc23b2a79..186cd19d28 100644 --- a/src/mbgl/text/collision_tile.hpp +++ b/src/mbgl/text/collision_tile.hpp @@ -39,10 +39,10 @@ class CollisionTile { public: explicit CollisionTile(PlacementConfig); - float placeFeature(const CollisionFeature&, const bool allowOverlap, const bool avoidEdges); - void insertFeature(CollisionFeature&, const float minPlacementScale, const bool ignorePlacement); + float placeFeature(const CollisionFeature&, bool allowOverlap, bool avoidEdges); + void insertFeature(CollisionFeature&, float minPlacementScale, bool ignorePlacement); - std::vector<IndexedSubfeature> queryRenderedSymbols(const GeometryCoordinates&, const float scale); + std::vector<IndexedSubfeature> queryRenderedSymbols(const GeometryCoordinates&, float scale); const PlacementConfig config; @@ -52,10 +52,9 @@ public: std::array<float, 4> rotationMatrix; std::array<float, 4> reverseRotationMatrix; - std::array<CollisionBox, 4> edges; private: - float findPlacementScale(float minPlacementScale, + float findPlacementScale( const Point<float>& anchor, const CollisionBox& box, const Point<float>& blockingAnchor, const CollisionBox& blocking); Box getTreeBox(const Point<float>& anchor, const CollisionBox& box, const float scale = 1.0); |