public static function fromVector($x0, $y0, $x1, $y1) 
    {
        $line = new ImagickRendererLine();

        $line->Px = $x0;
        $line->Py = $y0;
        
        $line->rx = $x1 - $x0;
        $line->ry = $y1 - $y0;

        return $line;
    }
public static function fromVector($x0, $y0, $x1, $y1) 
    {
        $line = new ImagickRendererLine();

        $line->Px = $x0;
        $line->Py = $y0;
        
        $line->rx = $x1 - $x0;
        $line->ry = $y1 - $y0;

        return $line;
    }
public static function fromVector ( $ x0 , $ y0 , $ x1 , $ y1 ) { $ line = new ImagickRendererLine ( ) ; $ line -> Px = $ x0 ; $ line -> Py = $ y0 ; $ line -> rx = $ x1 - $ x0 ; $ line -> ry = $ y1 - $ y0 ; return $ line ; }
Creates a new line from a vector.

@param float $x0 Vector start x coordinate.
@param float $y0 Vector start y coordinate.
@param float $x1 Vector end x coordinate.
@param float $y1 Vector end y coordinate.
Creates a new line from a vector .