| 1 | <?php |
||
| 10 | class QuadTreeMask implements MaskInterface |
||
| 11 | { |
||
| 12 | /** @var QuadTree */ |
||
| 13 | protected $tree; |
||
| 14 | /** @var \SixtyNine\Cloud\Factory\Logger */ |
||
| 15 | protected $logger; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $width |
||
| 19 | * @param int $height |
||
| 20 | */ |
||
| 21 | 6 | public function __construct($width, $height) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | 2 | public function getBoxes() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param \Imagine\Image\PointInterface $position |
||
| 37 | * @param Box $box |
||
| 38 | */ |
||
| 39 | 6 | public function add(PointInterface $position, Box $box) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @param Box $box |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | 6 | public function overlaps(Box $box) |
|
| 61 | } |
||
| 62 |