public class GeometryMath
extends java.lang.Object
构造器和说明 |
---|
GeometryMath() |
限定符和类型 | 方法和说明 |
---|---|
static Rect |
getBoundingBoxForRotatatedRectangle(Rect rect,
float angle,
Rect reuse)
得到矩形包围范围方法封装
|
static Rect |
getBoundingBoxForRotatatedRectangle(Rect rect,
int centerX,
int centerY,
float angle,
Rect reuse)
得到矩形包围范围
|
static Rect |
getBoundingBoxForRotatatedRectangle(Rect rect,
Point centerPoint,
float angle,
Rect reuse)
得到矩形包围范围方法封装
|
public static final double DEG2RAD
public static final double RAD2DEG
public static final Rect getBoundingBoxForRotatatedRectangle(Rect rect, float angle, Rect reuse)
rect
- 矩形angle
- anglereuse
- 可以回收的rect对象,如果没有可以传空public static final Rect getBoundingBoxForRotatatedRectangle(Rect rect, Point centerPoint, float angle, Rect reuse)
rect
- 矩形centerPoint
- 中心点angle
- anglereuse
- 可以回收的rect对象,如果没有可以传空public static final Rect getBoundingBoxForRotatatedRectangle(Rect rect, int centerX, int centerY, float angle, Rect reuse)
rect
- 矩形centerX
- 中心点xcenterY
- 中心点Yangle
- anglereuse
- 可以回收的rect对象,如果没有可以传空