我正在制作一个程序来显示各种变换下的矩阵,除了我的旋转矩阵外,它们都可以工作。香港专业教育学院试图与它摆弄,但似乎没有任何工作我的旋转矩阵为numpy(python)不起作用
y = input("how many degrees do you want to rotate the shape around the origin?: ")
j = array([(cos(int(y)), -sin(int(y))), (sin(int(y)), cos(int(y)))])
print(j.dot(w))
input("enter to exit")
谢谢你的工作 – goomba 2012-04-13 02:09:50