setasign\Fpdi\PdfReader\DataStructure

Rectangle Class representing a rectangle

File: /FPDI v2/PdfReader/DataStructure/Rectangle.php

Class hierarchy

Summary

Properties

$llx

protected int|float Rectangle::$llx

$lly

protected int|float Rectangle::$lly

$urx

protected int|float Rectangle::$urx

$ury

protected int|float Rectangle::$ury

Static Methods


Methods

__construct()

public Rectangle::__construct (
float|int $ax, float|int $ay, float|int $bx, float|int $by
)

Rectangle constructor.

Parameters
$ax : float|int
 
$ay : float|int
 
$bx : float|int
 
$by : float|int
 

getHeight()

public Rectangle::getHeight (
void
): float|int

Get the height of the rectangle.

getLlx()

public Rectangle::getLlx (
void
): float|int

Get the lower left abscissa.

getLly()

public Rectangle::getLly (
void
): float|int

Get the lower left ordinate.

getUrx()

public Rectangle::getUrx (
void
): float|int

Get the upper right abscissa.

getUry()

public Rectangle::getUry (
void
): float|int

Get the upper right ordinate.

getWidth()

public Rectangle::getWidth (
void
): float|int

Get the width of the rectangle.

toArray()

public Rectangle::toArray (
void
): array

Get the rectangle as an array.

toPdfArray()

Get the rectangle as a PdfArray.