src/mbgl/text/collision_index.cpp
inline bool CollisionIndex::isInsideTile(const CollisionBoundaries& boundaries,
                                         const CollisionBoundaries& tileBoundaries) const {
    return boundaries[0] >= tileBoundaries[0] && boundaries[1] >= tileBoundaries[1] &&
           boundaries[2] < tileBoundaries[2] && boundaries[3] < tileBoundaries[3];
}
// The tile border checks below are only well defined when the tile boundaries are axis-aligned
// We are relying on it only being used in MapMode::Tile, where that is always the case
The tile border checks below are only well defined when the tile boundaries are axis-aligned
We are relying on it only being used in MapMode::Tile, where that is always the case
The tile border checks below are only well defined when the tile boundaries are axis - aligned We are relying on it only being used in MapMode :: Tile where that is always the case
inline bool CollisionIndex::isInsideTile(const CollisionBoundaries& boundaries,
                                         const CollisionBoundaries& tileBoundaries) const {
    return boundaries[0] >= tileBoundaries[0] && boundaries[1] >= tileBoundaries[1] &&
           boundaries[2] < tileBoundaries[2] && boundaries[3] < tileBoundaries[3];
}
inline bool CollisionIndex :: isInsideTile ( const CollisionBoundaries & boundaries , const CollisionBoundaries & tileBoundaries ) const { return boundaries [ 0 ] >= tileBoundaries [ 0 ] && boundaries [ 1 ] >= tileBoundaries [ 1 ] && boundaries [ 2 ] < tileBoundaries [ 2 ] && boundaries [ 3 ] < tileBoundaries [ 3 ] ; }
The tile border checks below are only well defined when the tile boundaries are axis-aligned
We are relying on it only being used in MapMode::Tile, where that is always the case
The tile border checks below are only well defined when the tile boundaries are axis - aligned We are relying on it only being used in MapMode :: Tile where that is always the case