Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You cannot multiply a 3x3 matrix. You must make the matrix 4x4:

[x,x,x,0]

[x,x,x,0]

[x,x,x,0]

[0,0,0,1]

you then multiply and then set back to a 3x3 matrix. Watch out for numpy's format for selecting the individual parts, use m.item. Don't use np.resize, it messes the matrix up.