src/Rasterization/Path/SVGPolygonBuilder.php
public function addPointRelative($x, $y)
    {
        $this->posX += $x ?: 0;
        $this->posY += $y ?: 0;

        $this->points[] = array($this->posX, $this->posY);
    }
public function addPointRelative($x, $y)
    {
        $this->posX += $x ?: 0;
        $this->posY += $y ?: 0;

        $this->points[] = array($this->posX, $this->posY);
    }
public function addPointRelative ( $ x , $ y ) { $ this -> posX += $ x ? : 0 ; $ this -> posY += $ y ? : 0 ; $ this -> points [ ] = array ( $ this -> posX , $ this -> posY ) ; }
Appends a point with RELATIVE coordinates to the end of this polygon.

The coordinates are resolved against the current position.
Providing null for a coordinate is the same as providing a value of 0.

@see SVGPolygonBuilder::getPosition() For more info on relative points.

@param float|null $x The point's relative x coordinate.
@param float|null $y The point's relative y coordinate.

@return void
Appends a point with RELATIVE coordinates to the end of this polygon .