public static class GeoKit.Bounds extends Object implements Serializable
| Constructor and Description |
|---|
Bounds()
空矩形
|
Bounds(GeoKit.Bounds first,
GeoKit.Bounds other)
取两个矩形区域的并集
|
Bounds(GeoKit.Point southWest,
GeoKit.Point northEast) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(GeoKit.Bounds bounds) |
boolean |
contains(GeoKit.Point point) |
boolean |
equals(Object o) |
GeoKit.Point |
getCenter() |
GeoKit.Point |
getNorthEast() |
GeoKit.Point |
getSouthWest() |
int |
hashCode() |
GeoKit.Bounds |
intersects(GeoKit.Bounds bounds) |
boolean |
isEmpty() |
void |
setNorthEast(GeoKit.Point northEast) |
void |
setSouthWest(GeoKit.Point southWest) |
public Bounds()
public Bounds(GeoKit.Bounds first, GeoKit.Bounds other)
first - 第一个矩形区域other - 另一个矩形区域public Bounds(GeoKit.Point southWest, GeoKit.Point northEast)
public GeoKit.Point getSouthWest()
public void setSouthWest(GeoKit.Point southWest)
public GeoKit.Point getNorthEast()
public void setNorthEast(GeoKit.Point northEast)
public GeoKit.Point getCenter()
public boolean isEmpty()
public boolean contains(GeoKit.Point point)
point - 地理坐标点public boolean contains(GeoKit.Bounds bounds)
bounds - 矩形区域public GeoKit.Bounds intersects(GeoKit.Bounds bounds)
bounds - 矩形区域Copyright © 2020. All rights reserved.