Bounds
class Bounds implements BoundsInterface
Properties
protected float | $south | ||
protected float | $west | ||
protected float | $north | ||
protected float | $east | ||
protected int | $precision |
Methods
__construct(float $south, float $west, float $north, float $east)
No description
static
$this
setNorth(float $north)
No description
$this
setEast(float $east)
No description
$this
setSouth(float $south)
No description
$this
setWest(float $west)
No description
float
getSouth()
Returns the south bound.
float
getWest()
Returns the west bound.
float
getNorth()
Returns the north bound.
float
getEast()
Returns the east bound.
int
getPrecision()
No description
$this
setPrecision(int $precision)
No description
bool
getAsPolygon()
No description
array
toArray()
Returns an array with bounds.
Details
at line 41
__construct(float $south, float $west, float $north, float $east)
No description
at line 54
static
fromPolygon(PolygonInterface $polygon)
No description
at line 66
$this
setNorth(float $north)
No description
at line 77
$this
setEast(float $east)
No description
at line 88
$this
setSouth(float $south)
No description
at line 99
$this
setWest(float $west)
No description
at line 111
float
getSouth()
Returns the south bound.
at line 121
float
getWest()
Returns the west bound.
at line 131
float
getNorth()
Returns the north bound.
at line 141
float
getEast()
Returns the east bound.
at line 149
int
getPrecision()
No description
at line 158
$this
setPrecision(int $precision)
No description
at line 169
bool
pointInBounds(CoordinatesInterface $coordinate)
No description
at line 180
PolygonInterface
getAsPolygon()
No description
at line 195
setPolygon(PolygonInterface $polygon)
No description
at line 206
BoundsInterface
merge(BoundsInterface $bounds)
No description
at line 223
array
toArray()
Returns an array with bounds.
at line 236
protected
addCoordinate(CoordinatesInterface $coordinate)
No description