lib/Matrix3.cpp
Matrix3 Matrix3::operator*(const Matrix3 &m) {
  Matrix3 tmp;
  for (int i=0;i<3;i++) {
    for (int j=0;j<3;j++) {
      for (int k=0;k<3;k++)
	tmp[j][i]+=(_v[k][i]*m[j][k]);
    }
  }
  return tmp;
}
/*!
  Multiplies the current matrix on the right hand side by \a m and
  returns the result as a new Matrix3 instance.
*/
Multiplies the current matrix on the right hand side by \a m and
returns the result as a new Matrix3 instance.
Multiplies the current matrix on the right hand side by \ a m and returns the result as a new Matrix3 instance .
Matrix3 Matrix3::operator*(const Matrix3 &m) {
  Matrix3 tmp;
  for (int i=0;i<3;i++) {
    for (int j=0;j<3;j++) {
      for (int k=0;k<3;k++)
	tmp[j][i]+=(_v[k][i]*m[j][k]);
    }
  }
  return tmp;
}
Matrix3 Matrix3 :: operator * ( const Matrix3 & m ) { Matrix3 tmp ; for ( int i = 0 ; i < 3 ; i ++ ) { for ( int j = 0 ; j < 3 ; j ++ ) { for ( int k = 0 ; k < 3 ; k ++ ) tmp [ j ] [ i ] += ( _v [ k ] [ i ] * m [ j ] [ k ] ) ; } } return tmp ; }
Multiplies the current matrix on the right hand side by \a m and
returns the result as a new Matrix3 instance.
Multiplies the current matrix on the right hand side by \ a m and returns the result as a new Matrix3 instance .