Class OverlayPoint



  • public class OverlayPoint
    extends Object
    • Constructor Detail

      • OverlayPoint

        public OverlayPoint(double lon,
                            double lat)
        Create a point.
        Parameters:
        lon - this point's longitude.
        lat - this.point's latitude.
    • Method Detail

      • getLongitude

        public double getLongitude()
        Get this point's longitude.
        Returns:
        the longitude.
      • getLatitude

        public double getLatitude()
        Get this point's latitude.
        Returns:
        the latitude.
      • mean

        public static OverlayPoint mean(Collection<OverlayPoint> points)
        Calculate a new point that is the mean of all input points.
        Parameters:
        points - a collection of points.
        Returns:
        the mean of all points as a point.
      • minimum

        public static OverlayPoint minimum(Collection<OverlayPoint> points)
        Calculate a new point that has as its coordinate the minimum in both dimensions.
        Parameters:
        points - a collection of points.
        Returns:
        a point representing the minimum.
      • maximum

        public static OverlayPoint maximum(Collection<OverlayPoint> points)
        Calculate a new point that has as its coordinate the maximum in both dimensions.
        Parameters:
        points - a collection of points.
        Returns:
        a point representing the maximum.
      • toString

        public String toString()