| 程序包 | 说明 |
|---|---|
| com.hanyeah.display | |
| com.hanyeah.geom |
| 限定符和类型 | 字段和说明 |
|---|---|
HRectangle |
HBitmap.sourceRect
源数据的矩形区域
|
| 限定符和类型 | 方法和说明 |
|---|---|
HRectangle |
HDisplayObject.getBounds(HDisplayObject targetCoordinateSpace)
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
|
HRectangle |
HSpriteSheet.getFrameRect()
获取当前帧的外接矩形
|
HRectangle |
HDisplayObject.getRect()
获取外接矩形
|
HRectangle |
HDisplayObject.getRect(HDisplayObject targetCoordinateSpace)
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域,但不包括形状上的任何笔触。
|
| 构造器和说明 |
|---|
HBitmap(Bitmap source,
HRectangle sourceRect)
创建HBitmap。
|
| 限定符和类型 | 方法和说明 |
|---|---|
HRectangle |
HRectangle.clone()
返回一个新的 HRectangle 对象,其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。
|
HRectangle |
HRectangle.intersection(HRectangle toIntersect)
如果在 toIntersect 参数中指定的 HRectangle 对象与此 HRectangle 对象相交,则返回交集区域作为 HRectangle 对象。
|
HRectangle |
HMatrix.transleteRect(HRectangle rect)
返回将 HMatrix 对象表示的几何转换应用于指定矩形所产生的结果。
|
HRectangle |
HRectangle.union(HRectangle toUnion)
通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 HRectangle 对象。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
HRectangle.containsRect(HRectangle rect)
确定此 HRectangle 对象内是否包含由 rect 参数指定的 HRectangle 对象。
|
boolean |
HRectangle.equals(HRectangle toCompare)
确定在 toCompare 参数中指定的对象是否等于此 HRectangle 对象。
|
HRectangle |
HRectangle.intersection(HRectangle toIntersect)
如果在 toIntersect 参数中指定的 HRectangle 对象与此 HRectangle 对象相交,则返回交集区域作为 HRectangle 对象。
|
boolean |
HRectangle.intersects(HRectangle toIntersect)
确定在 toIntersect 参数中指定的对象是否与此 HRectangle 对象相交。
|
HRectangle |
HMatrix.transleteRect(HRectangle rect)
返回将 HMatrix 对象表示的几何转换应用于指定矩形所产生的结果。
|
HRectangle |
HRectangle.union(HRectangle toUnion)
通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 HRectangle 对象。
|