Android 計算點繞圓心旋轉角度後新座標

定義co 點A(x1,y1)new 圓心(x0,y0) 旋轉角度angle 旋轉弧度 a=Math.PI/180*angle 新座標 newX=x0+(x1-x0)*Math.cos(a)-(y1-y0)*Math.sin(a); newY=y1+(x1-x0)*Math.sin(a)+(y1-y0)*Math.cos(a);
相關文章
相關標籤/搜索