finalx = cos(angle)*x - sin(angle)*yco
finaly = sin(angle)*x +cos(angle)*y
或者有原角度加上旋轉後的角度的到新角度a以後,假設改箱量長度爲b則:
finaly = b * sin(a)
finalx = b * cos(a)