Fixed ticket #135, tyop in quat_cast

This commit is contained in:
Christophe Riccio 2010-04-27 11:02:12 +01:00
parent 7358df776b
commit 6d25690c93

View File

@ -451,7 +451,7 @@ namespace quaternion{
Result.w = (m[1][2] - m[2][1]) * mult; Result.w = (m[1][2] - m[2][1]) * mult;
Result.x = biggestVal; Result.x = biggestVal;
Result.y = (m[0][1] + m[1][0]) * mult; Result.y = (m[0][1] + m[1][0]) * mult;
Result.z = (m[2][1] + m[1][2]) * mult; Result.z = (m[2][0] + m[0][2]) * mult; //Result.z = (m[2][1] + m[1][2]) * mult;
break; break;
case 2: case 2:
Result.w = (m[2][0] - m[0][2]) * mult; Result.w = (m[2][0] - m[0][2]) * mult;