finalx = cos(angle)*x - sin(angle)*y
finaly = sin(angle)*x +cos(angle)*y
或者有原角度加上旋转后的角度的到新角度a之后,假设改箱量长度为b则:
finaly = b * sin(a)
finalx = b * cos(a)
finalx = cos(angle)*x - sin(angle)*y
finaly = sin(angle)*x +cos(angle)*y
或者有原角度加上旋转后的角度的到新角度a之后,假设改箱量长度为b则:
finaly = b * sin(a)
finalx = b * cos(a)