类 LCGeoPoint


  • public class LCGeoPoint
    extends java.lang.Object
    • 构造器详细资料

      • LCGeoPoint

        public LCGeoPoint()
      • LCGeoPoint

        public LCGeoPoint​(double latitude,
                          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