public function transformPoint($x, $y, $width = 0, $height = 0)
    {
        $right = $this->x + $this->size;
        $bottom = $this->y + $this->size;
        
        switch ($this->rotation) {
            case 1: return new Point($right - $y - $height, $this->y + $x);
            case 2: return new Point($right - $x - $width, $bottom - $y - $height);
            case 3: return new Point($this->x + $y, $bottom - $x - $width);
            default: return new Point($this->x + $x, $this->y + $y);
        }
    }
public function transformPoint($x, $y, $width = 0, $height = 0)
    {
        $right = $this->x + $this->size;
        $bottom = $this->y + $this->size;
        
        switch ($this->rotation) {
            case 1: return new Point($right - $y - $height, $this->y + $x);
            case 2: return new Point($right - $x - $width, $bottom - $y - $height);
            case 3: return new Point($this->x + $y, $bottom - $x - $width);
            default: return new Point($this->x + $x, $this->y + $y);
        }
    }
public function transformPoint ( $ x , $ y , $ width = 0 , $ height = 0 ) { $ right = $ this -> x + $ this -> size ; $ bottom = $ this -> y + $ this -> size ; switch ( $ this -> rotation ) { case 1 : return new Point ( $ right - $ y - $ height , $ this -> y + $ x ) ; case 2 : return new Point ( $ right - $ x - $ width , $ bottom - $ y - $ height ) ; case 3 : return new Point ( $ this -> x + $ y , $ bottom - $ x - $ width ) ; default : return new Point ( $ this -> x + $ x , $ this -> y + $ y ) ; } }
Transforms the specified point based on the translation and rotation
specification for this Transform.

@param float $x x-coordinate
@param float $y y-coordinate
@param float $width The width of the transformed rectangle. If greater
than 0, this will ensure the returned point is of the upper left
corner of the transformed rectangle.
@param float $height The height of the transformed rectangle. If greater
than 0, this will ensure the returned point is of the upper left
corner of the transformed rectangle.
@return \Jdenticon\Rendering\Point
Transforms the specified point based on the translation and rotation specification for this Transform .