CoordinatesInterface
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
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.
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.
at line 32
setLatitude(float $latitude)
Set the latitude.
at line 39
float
getLatitude()
Get the latitude.
at line 46
setLongitude(float $longitude)
Set the longitude.
at line 53
float
getLongitude()
Get the longitude.
at line 60
Ellipsoid
getEllipsoid()
Get the Ellipsoid.
at line 67
bool
isEqual(CoordinatesInterface $coordinate)
Returns a boolean determining coordinates equality