public function lineTo($x, $y) 
    {
        $pathsCount = count($this->paths);
        if ($pathsCount == 0) {
            $this->paths[] = array();
            $pathsCount++;
        }

        $p = $this->transform->multiplyPoint($x, $y);
        $path = &$this->paths[$pathsCount - 1];
        $path[] = $p->x;
        $path[] = $p->y;
    }