Browse Source

Don't create identity matrix when it's fully overwritten anyway.

vectorfields
Vladimír Vondruš 16 years ago
parent
commit
c72c36deaa
  1. 2
      src/Math/Matrix.h

2
src/Math/Matrix.h

@ -133,7 +133,7 @@ template<class T, size_t size> class Matrix {
/** @brief Transposed matrix */
Matrix<T, size> transposed() const {
Matrix<T, size> out;
Matrix<T, size> out(false);
for(size_t row = 0; row != size; ++row) {
for(size_t col = 0; col != size; ++col)

Loading…
Cancel
Save