@staticmethod<EOL><INDENT>def intersection(tiles, *args):<DEDENT>
tiles = listify(tiles) + listify(args)<EOL>if len(tiles) < <NUM_LIT:2>:<EOL><INDENT>return tiles[<NUM_LIT:0>]<EOL><DEDENT>tile = tiles[<NUM_LIT:0>]<EOL>l, r = tile.l.copy(), tile.r.copy()<EOL>for tile in tiles[<NUM_LIT:1>:]:<EOL><INDENT>l = amax(l, tile.l)<EOL>r = amin(r, tile.r)<EOL><DEDENT>return Tile(l, r, dtype=l.dtype)<EOL>
Intersection of tiles, returned as a tile

>>> Tile.intersection(Tile([0, 1], [5, 4]), Tile([1, 0], [4, 5]))
Tile [1, 1] -> [4, 4] ([3, 3])