setasign\SetaPDF2\Core\DataStructure
Rectangle Data structure class for rect objects
File: /SetaPDF v2/Core/DataStructure/Rectangle.php
Old class name (alias):
\SetaPDF_Core_DataStructure_Rectangle
Class hierarchy
Implements
Summary
Properties
$_array
An array representing a rectangle [llx lly urx ury]
Static Methods
byArray()
bool $getValue = false
Create a rect object or array from a php array.
Parameters
- $phpArray : array
- $getValue : bool
Exceptions
Throws \InvalidArgumentException
byRectangle()
Create an instance by another rectangle instance.
Parameters
create()
Create a rectangle by a specific argument.
Parameters
- $rectangle : array|\SetaPDF_Core_Geometry_Rectangle|\SetaPDF_Core_DataStructure_Rectangle
Exceptions
Throws \InvalidArgumentException
Methods
__construct()
The constructor.
Parameters
- $array : ?\SetaPDF_Core_Type_Array
Exceptions
Throws \InvalidArgumentException
__get()
__set()
contains()
Checks whether this rectangle contains another rectangle.
Parameters
Exceptions
Throws \InvalidArgumentException
getRectangle()
Return this rectangle as a \setasign\SetaPDF2\Core\Geometry\Rectangle instance.
intersect()
Checks whether this rectangle intersects another rectangle.
Parameters
Exceptions
Throws \InvalidArgumentException
setAll()
Set all coordinates.
Parameters
- $llx : float|int
Lower left x value
- $lly : float|int
Lower left y value
- $urx : float|int
Upper right x value
- $ury : float|int
Upper right y value