Rectangle
in package
Class representing a rectangle
Table of Contents
Properties
Methods
- __construct() : mixed
- Rectangle constructor.
- byPdfArray() : Rectangle
- Create a rectangle instance by a PdfArray.
- byVectors() : mixed
- getHeight() : float|int
- Get the height of the rectangle.
- getLlx() : float|int
- Get the lower left abscissa.
- getLly() : float|int
- Get the lower left ordinate.
- getUrx() : float|int
- Get the upper right abscissa.
- getUry() : float|int
- Get the upper right ordinate.
- getWidth() : float|int
- Get the width of the rectangle.
- toArray() : array<string|int, mixed>
- Get the rectangle as an array.
- toPdfArray() : PdfArray
- Get the rectangle as a PdfArray.
Properties
$llx
protected
int|float
$llx
$lly
protected
int|float
$lly
$urx
protected
int|float
$urx
$ury
protected
int|float
$ury
Methods
__construct()
Rectangle constructor.
public
__construct(float|int $ax, float|int $ay, float|int $bx, float|int $by) : mixed
Parameters
- $ax : float|int
- $ay : float|int
- $bx : float|int
- $by : float|int
byPdfArray()
Create a rectangle instance by a PdfArray.
public
static byPdfArray(PdfArray|mixed $array, PdfParser $parser) : Rectangle
Parameters
Tags
Return values
RectanglebyVectors()
public
static byVectors(Vector $ll, Vector $ur) : mixed
Parameters
getHeight()
Get the height of the rectangle.
public
getHeight() : float|int
Return values
float|intgetLlx()
Get the lower left abscissa.
public
getLlx() : float|int
Return values
float|intgetLly()
Get the lower left ordinate.
public
getLly() : float|int
Return values
float|intgetUrx()
Get the upper right abscissa.
public
getUrx() : float|int
Return values
float|intgetUry()
Get the upper right ordinate.
public
getUry() : float|int
Return values
float|intgetWidth()
Get the width of the rectangle.
public
getWidth() : float|int
Return values
float|inttoArray()
Get the rectangle as an array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>toPdfArray()
Get the rectangle as a PdfArray.
public
toPdfArray() : PdfArray