public class Coordinate
extends java.lang.Object
See CoordinateConverter to convert between Coordinate and CartesianCoordinate's building coordinate.
| Modifier and Type | Field and Description |
|---|---|
static <any> |
CREATOR |
static Coordinate |
EMPTY |
| Constructor and Description |
|---|
Coordinate(Coordinate copy) |
Coordinate(double latitude,
double longitude) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
double |
distanceTo(Coordinate coordinate)
Calculates the distance (in meters) between this coordinate and another
|
boolean |
equals(java.lang.Object o) |
double |
getLatitude()
Returns latitude in degrees
|
double |
getLongitude()
Returns longitude in degrees
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final <any> CREATOR
public static final Coordinate EMPTY
public Coordinate(double latitude,
double longitude)
public Coordinate(Coordinate copy)
public double getLatitude()
public double getLongitude()
public double distanceTo(Coordinate coordinate) throws java.lang.IllegalArgumentException
coordinate - the other coordinate. Can't be nulljava.lang.IllegalArgumentException - if cartesianCoordinate is nullpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
public void writeToParcel(Parcel dest,
int flags)