interface CoordinatesInterface

Methods

float
normalizeLatitude(float $latitude)

Normalizes a latitude to the (-90, 90) range.

float
normalizeLongitude(float $longitude)

Normalizes a longitude to the (-180, 180) range.

setLatitude(float $latitude)

Set the latitude.

float
getLatitude()

Get the latitude.

setLongitude(float $longitude)

Set the longitude.

float
getLongitude()

Get the longitude.

getEllipsoid()

Get the Ellipsoid.

bool
isEqual(CoordinatesInterface $coordinate)

Returns a boolean determining coordinates equality

Details

at line 15
float normalizeLatitude(float $latitude)

Normalizes a latitude to the (-90, 90) range.

Latitudes below -90.0 or above 90.0 degrees are capped, not wrapped.

Parameters

float $latitude

The latitude to normalize

Return Value

float

at line 25
float normalizeLongitude(float $longitude)

Normalizes a longitude to the (-180, 180) range.

Longitudes below -180.0 or abode 180.0 degrees are wrapped.

Parameters

float $longitude

The longitude to normalize

Return Value

float

at line 32
setLatitude(float $latitude)

Set the latitude.

Parameters

float $latitude

at line 39
float getLatitude()

Get the latitude.

Return Value

float

at line 46
setLongitude(float $longitude)

Set the longitude.

Parameters

float $longitude

at line 53
float getLongitude()

Get the longitude.

Return Value

float

at line 60
Ellipsoid getEllipsoid()

Get the Ellipsoid.

Return Value

Ellipsoid

at line 67
bool isEqual(CoordinatesInterface $coordinate)

Returns a boolean determining coordinates equality

Parameters

CoordinatesInterface $coordinate

Return Value

bool