Documentation

Rectangle
in package

Class representing a rectangle

Table of Contents

Properties

$llx  : int|float
$lly  : int|float
$urx  : int|float
$ury  : int|float

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

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

getHeight()

Get the height of the rectangle.

public getHeight() : float|int
Return values
float|int

getLlx()

Get the lower left abscissa.

public getLlx() : float|int
Return values
float|int

getLly()

Get the lower left ordinate.

public getLly() : float|int
Return values
float|int

getUrx()

Get the upper right abscissa.

public getUrx() : float|int
Return values
float|int

getUry()

Get the upper right ordinate.

public getUry() : float|int
Return values
float|int

getWidth()

Get the width of the rectangle.

public getWidth() : float|int
Return values
float|int

toArray()

Get the rectangle as an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results