Class GeoKit.Bounds

java.lang.Object
org.aoju.bus.core.toolkit.GeoKit.Bounds
All Implemented Interfaces:
Serializable
Enclosing class:
GeoKit

public static class GeoKit.Bounds extends Object implements Serializable
地理坐标矩形区域
See Also:
  • Constructor Details

    • Bounds

      public Bounds()
      空矩形
    • Bounds

      public Bounds(GeoKit.Bounds first, GeoKit.Bounds other)
      取两个矩形区域的并集
      Parameters:
      first - 第一个矩形区域
      other - 另一个矩形区域
    • Bounds

      public Bounds(GeoKit.Point southWest, GeoKit.Point northEast)
  • Method Details

    • getSouthWest

      public GeoKit.Point getSouthWest()
    • setSouthWest

      public void setSouthWest(GeoKit.Point southWest)
    • getNorthEast

      public GeoKit.Point getNorthEast()
    • setNorthEast

      public void setNorthEast(GeoKit.Point northEast)
    • getCenter

      public GeoKit.Point getCenter()
      Returns:
      返回矩形的中心点
    • isEmpty

      public boolean isEmpty()
      Returns:
      矩形区域是否为空
    • contains

      public boolean contains(GeoKit.Point point)
      Parameters:
      point - 地理坐标点
      Returns:
      地理坐标点是否位于此矩形内
    • contains

      public boolean contains(GeoKit.Bounds bounds)
      Parameters:
      bounds - 矩形区域
      Returns:
      矩形区域是否完全包含于此矩形区域中
    • intersects

      public GeoKit.Bounds intersects(GeoKit.Bounds bounds)
      Parameters:
      bounds - 矩形区域
      Returns:
      计算与另一矩形的交集区域
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object