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 
fromPolygon(PolygonInterface $polygon)

No description

$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
pointInBounds(CoordinatesInterface $coordinate)

No description

getAsPolygon()

No description

setPolygon(PolygonInterface $polygon)

No description

merge(BoundsInterface $bounds)

No description

array
toArray()

Returns an array with bounds.

addCoordinate(CoordinatesInterface $coordinate)

No description

Details

at line 41
__construct(float $south, float $west, float $north, float $east)

No description

Parameters

float $south

South bound, also min latitude

float $west

West bound, also min longitude

float $north

North bound, also max latitude

float $east

East bound, also max longitude

at line 54
static fromPolygon(PolygonInterface $polygon)

No description

Parameters

PolygonInterface $polygon

at line 66
$this setNorth(float $north)

No description

Parameters

float $north

Return Value

$this

at line 77
$this setEast(float $east)

No description

Parameters

float $east

Return Value

$this

at line 88
$this setSouth(float $south)

No description

Parameters

float $south

Return Value

$this

at line 99
$this setWest(float $west)

No description

Parameters

float $west

Return Value

$this

at line 111
float getSouth()

Returns the south bound.

Return Value

float

at line 121
float getWest()

Returns the west bound.

Return Value

float

at line 131
float getNorth()

Returns the north bound.

Return Value

float

at line 141
float getEast()

Returns the east bound.

Return Value

float

at line 149
int getPrecision()

No description

Return Value

int

at line 158
$this setPrecision(int $precision)

No description

Parameters

int $precision

Return Value

$this

at line 169
bool pointInBounds(CoordinatesInterface $coordinate)

No description

Parameters

CoordinatesInterface $coordinate

Return Value

bool

at line 180
PolygonInterface getAsPolygon()

No description

Return Value

PolygonInterface

at line 195
setPolygon(PolygonInterface $polygon)

No description

Parameters

PolygonInterface $polygon

at line 206
BoundsInterface merge(BoundsInterface $bounds)

No description

Parameters

BoundsInterface $bounds

Return Value

BoundsInterface

at line 223
array toArray()

Returns an array with bounds.

Return Value

array

at line 236
protected addCoordinate(CoordinatesInterface $coordinate)

No description

Parameters

CoordinatesInterface $coordinate