Exemplo n.º 1
0
 /**
  * Identifies whether a specified bounding box completely encompasses this bounding box?
  *
  * @param   QuadTreeBoundingBox  $boundary   The specified bounding box to test
  * @return  boolean                          Does the specified bounding box completely encompasses
  *                                                this bounding box?
  */
 public function encompasses(QuadTreeBoundingBox $boundary)
 {
     return $boundary->startX() <= $this->startX() && $boundary->endX() >= $this->endX() && ($boundary->startY() <= $this->startY() && $boundary->endY() >= $this->endY());
 }