<div><div class="gmail_quote">On Tue, Feb 23, 2010 at 9:39 AM, Giancarlo Amati <span dir="ltr">&lt;<a href="mailto:ilferraresebono@hotmail.it">ilferraresebono@hotmail.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
Hello guys,<br><br>I would like to know if a vtkMatrix4x4 is allocated by rows or column. I mean:<br><br>if I have a matrix like:<br><br>M = <br>a b c d<br>e f g i<br>j k l m<br>n o p q<br><br>and I do  loop like:<br><br>
for(i=0 to 3)<br>   for(j=0 to 3)<br>      vtkMat.element(i,j,M[i,j]);<br><br>is my vtkMat used as the transposed of the original?<br><br>kind Regards.<br>Giancarlo<br></div><div><br></div></blockquote><div><br></div><div>
You should be able to determine the ordering quickly simply by looking at the output. Also, you can use the Transpose function:</div><div> </div><a href="http://www.vtk.org/Wiki/VTK/Examples/MatrixTranspose">http://www.vtk.org/Wiki/VTK/Examples/MatrixTranspose</a><div>
<br clear="all">Thanks,<br><br></div><div>David</div></div></div>