public function calculateDistance(Shape $shape) { return sqrt(pow($this->getX() - $shape->getX(), 2) + pow($this->getY() - $shape->getY(), 2)); }