Example #1
0
 /**
  * @param Point $p
  */
 public function extend(Point $p)
 {
     if ($this->bounds === null) {
         $this->bounds = new Bounds($p->x, $p->y, $p->x, $p->y);
     } else {
         $this->bounds->extend($p->x, $p->y);
     }
 }