Class ImageLocation
Object
ImageLocation
The GPS coordinates associated with an image.
It has a custom equality method to handle floating point precision issues.
-
Constructor Summary
ConstructorsConstructorDescriptionImageLocation(double latitude, double longitude) Creates a newImageLocationinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublethe latitude, in degrees (can be positive or negative).doublethe longitude, in degrees.inthashCode()
-
Constructor Details
-
ImageLocation
public ImageLocation(double latitude, double longitude) Creates a newImageLocationinstance.- Parameters:
latitude- the latitude, in degrees (can be positive or negative).It is specified in degrees where positive values are north of the equator, and negative values are south of it.
longitude- the longitude, in degrees.It is specified in degrees where positive values are east of the prime meridian, and negative values are west of it.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getLatitude
public double getLatitude()the latitude, in degrees (can be positive or negative).It is specified in degrees where positive values are north of the equator, and negative values are south of it.
-
getLongitude
public double getLongitude()the longitude, in degrees.It is specified in degrees where positive values are east of the prime meridian, and negative values are west of it.
-