Browse Source

Revert "Math: use Vector::max() instead of custom ugly solution."

This reverts commit 71db38cb2f. The test
passes again.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
b2d7f4ecc7
  1. 5
      src/Magnum/Math/Quaternion.h

5
src/Magnum/Math/Quaternion.h

@ -543,7 +543,10 @@ template<class T> Quaternion<T> quaternionFromMatrix(const Matrix3x3<T>& m) {
}
/* Diagonal is negative */
const std::size_t i = diagonal.max();
std::size_t i = 0;
if(diagonal[1] > diagonal[0]) i = 1;
if(diagonal[2] > diagonal[i]) i = 2;
const std::size_t j = (i + 1) % 3;
const std::size_t k = (i + 2) % 3;

Loading…
Cancel
Save