public class Point extends Object implements Comparable<Point>, Cloneable, Position
| Constructor and Description |
|---|
Point(double latitude,
double longitude)
Instantiates a new point.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compareTo(Point other) |
boolean |
equals(Object o) |
double |
getLatitude()
Gets the latitude.
|
double |
getLongitude()
Gets the longitude.
|
int |
hashCode() |
void |
setLatitude(double latitude)
Sets the latitude.
|
void |
setLongitude(double longitude)
Sets the longitude.
|
String |
toString() |
public Point(double latitude,
double longitude)
latitude - the latitudelongitude - the longitudepublic int compareTo(Point other)
compareTo in interface Comparable<Point>public double getLatitude()
getLatitude in interface Positionpublic double getLongitude()
getLongitude in interface Positionpublic void setLatitude(double latitude)
setLatitude in interface Positionlatitude - the new latitudepublic void setLongitude(double longitude)
setLongitude in interface Positionlongitude - the new longitudeCopyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.