| 1 | initial version |
Graph editor seems to be working in sage 5.8 :)
The code you posted seems to work, except that you need to multiply rot_matrix by vector(vert_pos[i]). If you really insist on having tuples instead of matrices for the positions you can try changing
for i in vert_pos:
new_pos[i] = rot_matrix * vector(vert_pos[i])
to
for i in vert_pos:
new_pos[i] = tuple(rot_matrix * vector(vert_pos[i]))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.