Package org.aoju.bus.core.toolkit
Class GeoKit.Bounds
java.lang.Object
org.aoju.bus.core.toolkit.GeoKit.Bounds
-
Constructor Summary
ConstructorsConstructorDescriptionBounds()空矩形Bounds(GeoKit.Bounds first, GeoKit.Bounds other) 取两个矩形区域的并集Bounds(GeoKit.Point southWest, GeoKit.Point northEast) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(GeoKit.Bounds bounds) booleancontains(GeoKit.Point point) booleaninthashCode()intersects(GeoKit.Bounds bounds) booleanisEmpty()voidsetNorthEast(GeoKit.Point northEast) voidsetSouthWest(GeoKit.Point southWest)
-
Constructor Details
-
Bounds
public Bounds()空矩形 -
Bounds
取两个矩形区域的并集- Parameters:
first- 第一个矩形区域other- 另一个矩形区域
-
Bounds
-
-
Method Details
-
getSouthWest
-
setSouthWest
-
getNorthEast
-
setNorthEast
-
getCenter
- Returns:
- 返回矩形的中心点
-
isEmpty
public boolean isEmpty()- Returns:
- 矩形区域是否为空
-
contains
- Parameters:
point- 地理坐标点- Returns:
- 地理坐标点是否位于此矩形内
-
contains
- Parameters:
bounds- 矩形区域- Returns:
- 矩形区域是否完全包含于此矩形区域中
-
intersects
- Parameters:
bounds- 矩形区域- Returns:
- 计算与另一矩形的交集区域
-
equals
-
hashCode
-