Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Class representing a rectangle. More...
Public Member Functions | |
__construct ($ax, $ay, $bx, $by) | |
Rectangle constructor. | |
getHeight () | |
Get the height of the rectangle. | |
getLlx () | |
Get the lower left abscissa. | |
getLly () | |
Get the lower left ordinate. | |
getUrx () | |
Get the upper right abscissa. | |
getUry () | |
Get the upper right ordinate. | |
getWidth () | |
Get the width of the rectangle. | |
toArray () | |
Get the rectangle as an array. | |
toPdfArray () | |
Get the rectangle as a PdfArray. | |
Static Public Member Functions | |
static | byPdfArray ($array, PdfParser $parser) |
Create a rectangle instance by a PdfArray. | |
Protected Attributes | |
int float | $llx |
int float | $lly |
int float | $urx |
int float | $ury |
Class representing a rectangle.
Rectangle::__construct | ( | $ax, | |
$ay, | |||
$bx, | |||
$by ) |
Rectangle constructor.
float | int | $ax | |
float | int | $ay | |
float | int | $bx | |
float | int | $by |
|
static |
Rectangle::getHeight | ( | ) |
Get the height of the rectangle.
float|int |
Rectangle::getLlx | ( | ) |
Get the lower left abscissa.
float|int |
Rectangle::getLly | ( | ) |
Get the lower left ordinate.
float|int |
Rectangle::getUrx | ( | ) |
Get the upper right abscissa.
float|int |
Rectangle::getUry | ( | ) |
Get the upper right ordinate.
float|int |
Rectangle::getWidth | ( | ) |
Get the width of the rectangle.
float|int |
Rectangle::toArray | ( | ) |
Get the rectangle as an array.
array |