@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return new self($this->getX() + $deltaX, $this->getY() + $deltaY, $this->getWidth(), $this->getHeight()); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param integer $count |
|
| 94 | + */ |
|
| 92 | 95 | public function resize($count) |
| 93 | 96 | { |
| 94 | 97 | return new self( |
@@ -11,6 +11,10 @@ |
||
| 11 | 11 | /** @var QuadTree */ |
| 12 | 12 | protected $tree; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param integer $width |
|
| 16 | + * @param integer $height |
|
| 17 | + */ |
|
| 14 | 18 | function __construct($width, $height) |
| 15 | 19 | { |
| 16 | 20 | $this->tree = new QuadTree(new Box(0, 0, $width, $height)); |