私はさまざまな変換の下で行列を表示するプログラムを作っていましたが、それらはすべて私の回転行列以外は動作します。 IVEは、それをいじってみましたが、何もPythonのcos
のドキュメントとsin
ポイントアウトしたよう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