public class GeometryUtils
extends java.lang.Object
| 构造器和说明 |
|---|
GeometryUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
getAngle(double x,
double y)
get the angle of a touch event.
|
static int |
getQuadrant(double x,
double y)
get the quadrant of the wheel which contains the touch point (x,y)
|
static GeometryPoints |
getSameAngleDifferRadius(float angle,
float radius,
GeometryPoints centerPoints)
获取同一个角度不同半径的坐标点
|
static boolean |
isRotate(GeometryPoints points,
GeometryPoints fingerPoints)
判断是否可以旋转 就是判断点是不是在图标范围内
|
public static GeometryPoints getSameAngleDifferRadius(float angle, float radius, GeometryPoints centerPoints)
angle - 角度radius - 半径centerPoints - 圆心点public static double getAngle(double x,
double y)
public static int getQuadrant(double x,
double y)
public static boolean isRotate(GeometryPoints points, GeometryPoints fingerPoints)
points -