BBox
in package
Bounding box represented as a set of minimum and maximum values for the x and y axes.
Table of Contents
Properties
Methods
- __construct() : mixed
- extendWith() : void
- Extends the BBox with the provided points.
- getMaxX() : float
- Retrieves the maximum x coordinate.
- getMaxY() : float
- Retrieves the maximum y coordinate.
- getMinX() : float
- Retrieves the minimum x coordinate.
- getMinY() : float
- Retrieves the minimum y coordinate.
Properties
$maxX
private
float
$maxX
Maximum X coordinate.
$maxY
private
float
$maxY
Maximum Y coordinate.
$minX
private
float
$minX
Minimum X coordinate.
$minY
private
float
$minY
Minimum Y coordinate.
Methods
__construct()
public
__construct(float $minX, float $maxX, float $minY, float $maxY) : mixed
Parameters
- $minX : float
-
Input minimum X coordinate.
- $maxX : float
-
Input maximum X coordinate.
- $minY : float
-
Input minimum Y coordinate.
- $maxY : float
-
Input maximum Y coordinate.
extendWith()
Extends the BBox with the provided points.
public
extendWith(Polygon|array<string|int, mixed> $points) : void
Parameters
- $points : Polygon|array<string|int, mixed>
-
Series of points to add to the BBox.
getMaxX()
Retrieves the maximum x coordinate.
public
getMaxX() : float
Return values
floatgetMaxY()
Retrieves the maximum y coordinate.
public
getMaxY() : float
Return values
floatgetMinX()
Retrieves the minimum x coordinate.
public
getMinX() : float
Return values
floatgetMinY()
Retrieves the minimum y coordinate.
public
getMinY() : float