/var/www/vhosts/ihelp.ro/httpdocs/vendor/imagine/imagine/src/Image
NameSizeModeActions
Fill/-0755rm
Histogram/-0755rm
Metadata/-0755rm
Palette/-0755rm
Point/-0755rm
AbstractFont.php36830644editdlrm
AbstractImage.php72280644editdlrm
AbstractImagine.php26670644editdlrm
AbstractLayers.php21410644editdlrm
Box.php32300644editdlrm
BoxInterface.php19720644editdlrm
FontInterface.php12780644editdlrm
Format.php32230644editdlrm
FormatList.php13780644editdlrm
ImageInterface.php64420644editdlrm
ImagineInterface.php27180644editdlrm
LayersInterface.php26860644editdlrm
ManipulatorInterface.php59140644editdlrm
Point.php21150644editdlrm
PointInterface.php10920644editdlrm
PointSigned.php17430644editdlrm
Profile.php16130644editdlrm
ProfileInterface.php5190644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/imagine/imagine/src/Image/PointSigned.php (1743B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Imagine\Image; /** * A point class that allows negative values of coordinates. */ final class PointSigned implements PointInterface { /** * @var int */ private $x; /** * @var int */ private $y; /** * Constructs a point of coordinates. * * @param int $x * @param int $y * * @throws \Imagine\Exception\InvalidArgumentException */ public function __construct($x, $y) { $this->x = $x; $this->y = $y; } /** * {@inheritdoc} * * @see \Imagine\Image\PointInterface::getX() */ public function getX() { return $this->x; } /** * {@inheritdoc} * * @see \Imagine\Image\PointInterface::getY() */ public function getY() { return $this->y; } /** * {@inheritdoc} * * @see \Imagine\Image\PointInterface::in() */ public function in(BoxInterface $box) { return $this->x >= 0 && $this->x < $box->getWidth() && $this->y >= 0 && $this->y < $box->getHeight(); } /** * {@inheritdoc} * * @see \Imagine\Image\PointInterface::move() */ public function move($amount) { return new self($this->x + $amount, $this->y + $amount); } /** * {@inheritdoc} * * @see \Imagine\Image\PointInterface::__toString() */ public function __toString() { return sprintf('(%d, %d)', $this->x, $this->y); } }