限定符和类型 | 字段和说明 |
---|---|
Point2D |
center
中心点。
|
double |
height
旋转前二维矩形几何对象的高度。
|
double |
rotation
二维矩形几何对象的旋转角度。
|
double |
width
旋转前二维矩形几何对象的宽度。
|
构造器和说明 |
---|
GeoRectangle()
构造函数。
|
GeoRectangle(GeoRectangle geoRectangle)
根据给定的 GeoRectangle 对象构造一个与其完全相同的新对象。
|
GeoRectangle(int id, Point2D center, double height, double width, double rotation)
根据指定的参数来构造一个 GeoRectangle 的新对象。
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj)
比较指定对象与当前 Geometry 对象是否相等。
|
Point2D |
getCenter()
获取几何对象中心点。
|
int |
hashCode()
获取哈希码。
|
equals, fromPoint2D, fromPoint2Ds, fromPoint2Ds, fromRect2D, getBounds, isGeometryCAD, isPointInPolygon, setCenter
public Point2D center
中心点。
public double height
旋转前二维矩形几何对象的高度。
public double width
旋转前二维矩形几何对象的宽度。
public double rotation
二维矩形几何对象的旋转角度。旋转基点为二维矩形几何对象的中心点。
public GeoRectangle()
构造函数。
public GeoRectangle(int id, Point2D center, double height, double width, double rotation)
根据指定的参数来构造一个 GeoRectangle 的新对象。
id
- 对象的id。center
- 中心点。height
- 旋转前二维矩形几何对象的高度。width
- 旋转前二维矩形几何对象的宽度。rotation
- 二维矩形几何对象的旋转角度。旋转基点为二维矩形几何对象的中心点。public GeoRectangle(GeoRectangle geoRectangle)
根据给定的 GeoRectangle 对象构造一个与其完全相同的新对象。
geoRectangle
- 给定的 GeoRectangle 对象。