added const qualifier to transpose function

This commit is contained in:
granzuglia 2009-01-22 10:18:40 +00:00
parent 393ef8a41a
commit de75285ed0
1 changed files with 2 additions and 1 deletions

View File

@ -397,12 +397,13 @@ public:
} }
// for the transistion to eigen // for the transistion to eigen
Matrix33 transpose() Matrix33 transpose() const
{ {
Matrix33 res = *this; Matrix33 res = *this;
res.Transpose(); res.Transpose();
return res; return res;
} }
void transposeInPlace() { this->Transpose(); } void transposeInPlace() { this->Transpose(); }
/// Funzione per costruire una matrice diagonale dati i tre elem. /// Funzione per costruire una matrice diagonale dati i tre elem.