Example #1
0
 /**
  * @param PointSet $other
  *
  * @return PointSet
  */
 public function intersect(PointSet $other)
 {
     $result = new self();
     $result->addAll($this);
     $result->removeAllExcept($other);
     return $result;
 }