src/types/matrix.cpp

changeset 1159
6ad8cdcd88d9
parent 1151
0eddb5bcf25b
child 1326
69a90bd2dba2
equal deleted inserted replaced
1158:35ceb74fe53e 1159:6ad8cdcd88d9
50 break; 50 break;
51 } 51 }
52 } 52 }
53 53
54 /* 54 /*
55 * Prints the matrix out.
56 */
57 void Matrix::dump() const
58 {
59 for (int i = 0; i < 3; ++i)
60 {
61 for (int j = 0; j < 3; ++j)
62 print ("%1\t", m_values[i * 3 + j]);
63
64 print ("\n");
65 }
66 }
67
68 /*
69 * Returns a string representation of the matrix 55 * Returns a string representation of the matrix
70 */ 56 */
71 QString Matrix::toString() const 57 QString Matrix::toString() const
72 { 58 {
73 QString val; 59 QString val;

mercurial