PHP Class Location\Bounds

Author: Marcus Jaschen ([email protected])
Datei anzeigen Open project: mjaschen/phpgeo Class Usage Examples

Protected Properties

Property Type Description
$northWest Coordinate
$southEast Coordinate

Public Methods

Method Description
__construct ( Coordinate $northWest, Coordinate $southEast )
getCenter ( ) : Coordinate Calculates the center of this bounds object and returns it as a Coordinate instance.
getEast ( ) : float
getNorth ( ) : float
getNorthWest ( ) : Coordinate Getter
getSouth ( ) : float
getSouthEast ( ) : Coordinate Getter
getWest ( ) : float

Protected Methods

Method Description
getCenterLng ( ) : float

Method Details

__construct() public method

public __construct ( Coordinate $northWest, Coordinate $southEast )
$northWest Coordinate
$southEast Coordinate

getCenter() public method

Calculates the center of this bounds object and returns it as a Coordinate instance.
public getCenter ( ) : Coordinate
return Coordinate

getCenterLng() protected method

protected getCenterLng ( ) : float
return float

getEast() public method

public getEast ( ) : float
return float

getNorth() public method

public getNorth ( ) : float
return float

getNorthWest() public method

Getter
public getNorthWest ( ) : Coordinate
return Coordinate

getSouth() public method

public getSouth ( ) : float
return float

getSouthEast() public method

Getter
public getSouthEast ( ) : Coordinate
return Coordinate

getWest() public method

public getWest ( ) : float
return float

Property Details

$northWest protected_oe property

protected Coordinate,Location $northWest
return Coordinate

$southEast protected_oe property

protected Coordinate,Location $southEast
return Coordinate