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