类 LCGeoPoint
- java.lang.Object
-
- cn.leancloud.types.LCGeoPoint
-
public class LCGeoPoint extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 LCGeoPoint()LCGeoPoint(double latitude, double longitude)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 doubledistanceInKilometersTo(LCGeoPoint point)Get distance bw this point and another point in kilometers.doubledistanceInMilesTo(LCGeoPoint point)Get distance between this point and another geopoint in miles.doubledistanceInRadiansTo(LCGeoPoint point)Get distance in radians between this point and another GeoPoint.doublegetLatitude()doublegetLongitude()voidsetLatitude(double latitude)voidsetLongitude(double longitude)
-
-
-
方法详细资料
-
getLatitude
public double getLatitude()
-
setLatitude
public void setLatitude(double latitude)
-
getLongitude
public double getLongitude()
-
setLongitude
public void setLongitude(double longitude)
-
distanceInKilometersTo
public double distanceInKilometersTo(LCGeoPoint point)
Get distance bw this point and another point in kilometers.- 参数:
point- GeoPoint describing the other point being measured against.- 返回:
- distance result.
-
distanceInMilesTo
public double distanceInMilesTo(LCGeoPoint point)
Get distance between this point and another geopoint in miles.- 参数:
point- GeoPoint describing the other point being measured against.- 返回:
- distance
-
distanceInRadiansTo
public double distanceInRadiansTo(LCGeoPoint point)
Get distance in radians between this point and another GeoPoint. This is the smallest angular distance between the two points.- 参数:
point- GeoPoint describing the other point being measured against.- 返回:
- distance
-
-