我不是那么熟悉的三角函数,但我在2D中只有两个点可以旋转:
*nx, ny
. -
. -
. angle -
*cx,cy.................*x,y
Run Code Online (Sandbox Code Playgroud)
cx,cy =旋转中心
x,y =当前x,y
nx,ny =新坐标
如何计算某个角度的新点?