def rotate(x, y, angle ):
origin =(0, 0)
x1=(x*cos(radians (angle )))- (y*sin(radians (Angle )))+origins [0]
y1=(x*sin(radians (angle )))+(y*cos(radians (Angle )))+origins [1]
return x1, y1
請問
rotate (10, 0,360)跑出
(6.123233995736766e-16, 10.0)
其他90, 180, 270也一样,可是66, 33等不刚好的角度反而是顯示正確
要怎麼修正呢?