Rectangle
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- contains() : bool
- expand() : self
- intersect() : self|null
- scale() : self
- toArray() : array<int, float>
- union() : self
Properties
$height read-only
public
float
$height
$width read-only
public
float
$width
$x read-only
public
float
$x
$y read-only
public
float
$y
Methods
__construct()
public
__construct(float $x, float $y, float $width, float $height) : mixed
Parameters
- $x : float
- $y : float
- $width : float
- $height : float
contains()
public
contains(self $other) : bool
Parameters
- $other : self
Return values
boolexpand()
public
expand(float $margin) : self
Parameters
- $margin : float
Return values
selfintersect()
public
intersect(self $other) : self|null
Parameters
- $other : self
Return values
self|nullscale()
public
scale(float $factor) : self
Parameters
- $factor : float
Return values
selftoArray()
public
toArray() : array<int, float>
Return values
array<int, float> —Returns [llx, lly, urx, ury] as used in PDF boxes
union()
public
union(self $other) : self
Parameters
- $other : self