Neos\Media\Imagine\Box::contains PHP Method

contains() public method

public contains ( Imagine\Image\BoxInterface $box, Imagine\Image\PointInterface $start = null )
$box Imagine\Image\BoxInterface
$start Imagine\Image\PointInterface
    public function contains(BoxInterface $box, PointInterface $start = null)
    {
        $start = $start ? $start : new Point(0, 0);
        return $start->in($this) && $this->width >= $box->getWidth() + $start->getX() && $this->height >= $box->getHeight() + $start->getY();
    }