Resizes node by passed sizes

@param float $x Value of width's resize
@param float $y Value of height's resize
357714
public function resize($x, $y)
    {
        if(!$x && !$y)
        {
            return;
        }

        $diagonalXCoord = $this->getDiagonalPoint()->getX() - $this->getPaddingRight();
        $firstXCoord = $this->getFirstPoint()->getX() + $this->getPaddingLeft();

        $this->getBoundary()->pointTranslate(1, $x, 0);
        $this->getBoundary()->pointTranslate(2, $x, $y);
        $this->getBoundary()->pointTranslate(3, 0, $y);
        
        $this->setHeight($this->getHeight() + $y);
        $this->setWidth($this->getWidth() + $x);

        foreach($this->getChildren() as $child)
        {
            if($child->getFloat() === Node::FLOAT_RIGHT)
            {
                $child->translate($x - $this->getPaddingRight(), 0);
            }
            else
            {
                $childDiagonalXCoord = $child->getDiagonalPoint()->getX() + $child->getMarginRight();
                $childFirstXCoord = $child->getFirstPoint()->getX();
    
                $relativeWidth = $child->getRelativeWidth();
    
                if($relativeWidth !== null)
                {
                    $relativeWidth = ($x + $diagonalXCoord - $firstXCoord)*((int) $relativeWidth)/100;
                    $childResize = (($childFirstXCoord + $relativeWidth) + $child->getMarginRight()) - $childDiagonalXCoord;
                }
                else
                {
                    $childResize = $x + ($diagonalXCoord - $childDiagonalXCoord);
                    $childResize = $childResize < 0 ? $childResize : 0;
                }
                
                if($childResize != 0)
                {
                    $child->resize($childResize, 0);
                }
            }
        }
    }
808327
public function crop($x, $y, $width, $height, $interlace = false) {
		return $this -> createImage($x, $y, $width, $height, $width, $height, $interlace);
	}
1241215
public void set(double x, double y, double radius) {
        this.x = x;
        this.y = y;
        this.width = radius * 2.0;
        this.height = radius * 2.0;
    }
758728
public function add($x = 0, $y = 0) {
		$this->width += $x;
		$this->height += $y;
		return $this;
	}
57504
function setDimensions($x, $y)
    {
        $this->max_x = $x - 1;
        $this->max_y = $y - 1;
        $this->x = $this->y = 0;
        $this->history = $this->history_attrs = array();
        $this->attr_row = array_fill(0, $this->max_x + 2, $this->base_attr_cell);
        $this->screen = array_fill(0, $this->max_y + 1, '');
        $this->attrs = array_fill(0, $this->max_y + 1, $this->attr_row);
        $this->ansi = '';
    }
616589
public function SetXY($x, $y, $rtloff=false)
    {
        $this->x=$x;
        $this->y=$y;
    }
190909
public function set(float $x, float $y) {
        $this->setX($x);
        $this->setY($y);
    }
1028842
public static function Init( int $x, int $y, int $width, int $height ) : Rectangle
   {

      return new Rectangle(
         new Point( $x, $y ),
         new Size( $width, $height )
      );

   }
654287
public function getPixel($x, $y)
    {
        $driver = $this->getDriver();
        return $driver->getPixel($this->resource, $x, $y);
    }
662128
public function crop(Int $x, Int $y) : Thumb
    {
        $this->sets['x'] = $x;
        $this->sets['y'] = $y;

        return $this;
    }
158031
public function write($x, $y, $color)
    {
        if(isset($this->canvas[$y][$x])) {
            $this->canvas[$y][$x] = $color;
        }
    }
1126779
private function diff($x, $y)
    {
        $exporter = new Exporter();

        $diff = new Diff(
            preg_split('/\R/', $exporter->export($x)),
            preg_split('/\R/', $exporter->export($y))
        );

        return $diff->render(new Diff_Renderer_Text_Unified());
    }
1000961
def bsp_resize(node: tcod.bsp.BSP, x: int, y: int, w: int, h: int) -> None:
    
    node.x = x
    node.y = y
    node.width = w
    node.height = h
375802
public function apply(float $x, float $y) : array
    {
        return [
            $x * $this->values[0] + $y * $this->values[2] + $this->values[4],
            $x * $this->values[2] + $x * $this->values[3] + $this->values[5],
        ];
    }
726202
public void setBounds(float x, float y, float width, float height) {
		setX(x);
		setY(y);
		setSize(width, height);
	}
1301197
public function rgbXY($x, $y) {
        $color = $this->colorXY($x, $y);
        return array(($color >> 16) & 0xFF, ($color >> 8) & 0xFF, $color & 0xFF);
    }
1051638
public function moveTo($x,$y)
	{
		$this->_oldX = $x;
		$this->_oldY = $y;
		$this->_polygonPath[] = $x;
		$this->_polygonPath[] = $y;
		return $this;
	}