Fix name shadowing
This commit is contained in:
@@ -91,11 +91,11 @@ void CollisionTile::insertFeature(CollisionFeature &feature, const float minPlac
|
||||
|
||||
Box CollisionTile::getTreeBox(const vec2<float> &anchor, const CollisionBox &box) {
|
||||
return Box{
|
||||
Point{
|
||||
CollisionPoint{
|
||||
anchor.x + box.x1,
|
||||
anchor.y + box.y1 * yStretch
|
||||
},
|
||||
Point{
|
||||
CollisionPoint{
|
||||
anchor.x + box.x2,
|
||||
anchor.y + box.y2 * yStretch
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace mbgl {
|
||||
namespace bg = boost::geometry;
|
||||
namespace bgm = bg::model;
|
||||
namespace bgi = bg::index;
|
||||
typedef bgm::point<float, 2, bg::cs::cartesian> Point;
|
||||
typedef bgm::box<Point> Box;
|
||||
typedef bgm::point<float, 2, bg::cs::cartesian> CollisionPoint;
|
||||
typedef bgm::box<CollisionPoint> Box;
|
||||
typedef std::pair<Box, CollisionBox> CollisionTreeBox;
|
||||
typedef bgi::rtree<CollisionTreeBox, bgi::linear<16,4>> Tree;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user