Ejemplo n.º 1
0
 public function getBoundingBox()
 {
     $box1 = new Rectangle($this->coords[0], $this->coords[1], $this->coords[2], $this->coords[3]);
     $box2 = new Rectangle($this->coords[4], $this->coords[5], $this->coords[2], $this->coords[3]);
     $box1->mergeWith($box2);
     return $box1;
 }