1
This commit is contained in:
@@ -4,12 +4,13 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package setasign\Fpdi
|
||||
* @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @copyright Copyright (c) 2023 Setasign GmbH & Co. KG (https://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
*/
|
||||
|
||||
namespace setasign\Fpdi\PdfReader\DataStructure;
|
||||
|
||||
use setasign\Fpdi\Math\Vector;
|
||||
use setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException;
|
||||
use setasign\Fpdi\PdfParser\PdfParser;
|
||||
use setasign\Fpdi\PdfParser\PdfParserException;
|
||||
@@ -64,6 +65,11 @@ class Rectangle
|
||||
return new self($ax, $ay, $bx, $by);
|
||||
}
|
||||
|
||||
public static function byVectors(Vector $ll, Vector $ur)
|
||||
{
|
||||
return new self($ll->getX(), $ll->getY(), $ur->getX(), $ur->getY());
|
||||
}
|
||||
|
||||
/**
|
||||
* Rectangle constructor.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user