View Single Post
  #4  
Old 09-22-2009, 11:01 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you have a list of 16 values representing the 4x4 matrix, then you can initialize a viz.Matrix object with it:
Code:
matrix_data = [1,2,3,...,16] # 4x4 matrix values

m = viz.Matrix(matrix_data) #Create matrix object
print m.getPosition() #Print position
print m.getQuat() #Print quaternion
Reply With Quote