public class LCGeoPoint extends Object
Constructor and Description |
---|
LCGeoPoint() |
LCGeoPoint(double latitude,
double longitude) |
Modifier and Type | Method and Description |
---|---|
double |
distanceInKilometersTo(LCGeoPoint point)
Get distance bw this point and another point in kilometers.
|
double |
distanceInMilesTo(LCGeoPoint point)
Get distance between this point and another geopoint in miles.
|
double |
distanceInRadiansTo(LCGeoPoint point)
Get distance in radians between this point and another GeoPoint.
|
double |
getLatitude() |
double |
getLongitude() |
void |
setLatitude(double latitude) |
void |
setLongitude(double longitude) |
public LCGeoPoint()
public LCGeoPoint(double latitude, double longitude)
public double getLatitude()
public void setLatitude(double latitude)
public double getLongitude()
public void setLongitude(double longitude)
public double distanceInKilometersTo(LCGeoPoint point)
point
- GeoPoint describing the other point being measured against.public double distanceInMilesTo(LCGeoPoint point)
point
- GeoPoint describing the other point being measured against.public double distanceInRadiansTo(LCGeoPoint point)
point
- GeoPoint describing the other point being measured against.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.