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