以正东面为0度起点计算指定角度所对应的圆周上的点的坐标:
float radian = Math.toRadians(angle);
float x = center.x + Math.cos(radian)*currentAdius;
float y = center.y + Math.sin(radian)*currentAdius;
说明
angle为弧度,center.x为圆心所在的X坐标,center.y为圆心所在Y坐标,currentAdius为圆的半径
以正东面为0度起点计算指定角度所对应的圆周上的点的坐标:
float radian = Math.toRadians(angle);
float x = center.x + Math.cos(radian)*currentAdius;
float y = center.y + Math.sin(radian)*currentAdius;
说明
angle为弧度,center.x为圆心所在的X坐标,center.y为圆心所在Y坐标,currentAdius为圆的半径