public class GeoRect
extends java.lang.Object
构造器和说明 |
---|
GeoRect() |
GeoRect(double left,
double top,
double right,
double bottom)
根据左、右经度与上、下纬度构建
|
GeoRect(GeoRect r)
矩形经纬度区域拷贝
|
限定符和类型 | 方法和说明 |
---|---|
double |
centerX()
获取中心点 X 坐标
|
double |
centerY()
获取中心点 Y 坐标
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
double |
height()
获取高度
|
static boolean |
intersects(GeoRect a,
GeoRect b)
判断两个矩形经纬度区域是否相交
|
boolean |
isEmpty()
是否为空
|
void |
printShortString(java.io.PrintWriter pw)
矩形经纬度区域字符串打印
|
void |
setEmpty()
清空 Rect
|
java.lang.String |
toShortString()
输出坐标串
|
java.lang.String |
toShortString(java.lang.StringBuilder sb)
输出矩形经纬度区域字符串
|
java.lang.String |
toString() |
double |
width()
获取宽度
|
public double left
public double top
public double right
public double bottom
public GeoRect()
public GeoRect(double left, double top, double right, double bottom)
left
- 左经度top
- 上纬度right
- 右经度bottom
- 下纬度public GeoRect(GeoRect r)
r
- 原始矩形经纬度区域public static boolean intersects(GeoRect a, GeoRect b)
a
- 判断的矩形经纬度区域b
- 判断的矩形经纬度区域public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object
public java.lang.String toShortString()
public java.lang.String toShortString(java.lang.StringBuilder sb)
sb
- StringBuilder对象public void printShortString(java.io.PrintWriter pw)
pw
- 输出流public final boolean isEmpty()
public final double width()
public final double height()
public final double centerX()
public final double centerY()
public void setEmpty()
©2017-2019 四维智联科技有限公司 版权所有 京ICP证 030779-2号-1京公网安备 11010502030327号