Example #1
0
 /**
  * Check if there is point with given coordinates
  * @param Point $pointToCheck
  */
 public function hasPoint(PointInterface $pointToCheck)
 {
     $existingPoint = $this->getPointByCoordinates($pointToCheck->getX(), $pointToCheck->getY());
     if ($existingPoint) {
         return true;
     }
     return false;
 }