View Single Post
Old 10-15-2012, 11:30 AM
mhead10 mhead10 is offline
Join Date: Mar 2012
Posts: 40
I think I should be able to find a solution by matrix multiplication. However, I'm having some trouble with syntax.

Can someone tell me the correct way to multiply 4x4 and 4x1 matrices?

For instance:
import vizmat
import numpy
import math

A = vizmat.Transform()
B = vizmat.Transform()

C = A*B

print 'C = ', C
Doing this yields C = None.

Therefore, if I uncomment B.set, and comment out B, C = the correct answer of ([[-1],[1.732],[0],[0]]), but then I would need to add another step of extracting just the first column from the matrix.
Reply With Quote