Refactored glm/gtc/quaternion mat3_cast

- Factored out minus signs.  Previous commit was incorrect.
This commit is contained in:
Dustin Biser 2013-10-05 15:34:03 -04:00
parent 78fed634b7
commit 6881e1bb90

View File

@ -678,17 +678,17 @@ namespace detail
T qwy(q.w * q.y);
T qwz(q.w * q.z);
Result[0][0] = 1 - 2 * (qyy - qzz);
Result[0][0] = 1 - 2 * (qyy + qzz);
Result[0][1] = 2 * (qxy + qwz);
Result[0][2] = 2 * (qxz - qwy);
Result[1][0] = 2 * (qxy - qwz);
Result[1][1] = 1 - 2 * (qxx - qzz);
Result[1][1] = 1 - 2 * (qxx + qzz);
Result[1][2] = 2 * (qyz + qwx);
Result[2][0] = 2 * (qxz + qwy);
Result[2][1] = 2 * (qyz - qwx);
Result[2][2] = 1 - 2 * (qxx - qyy);
Result[2][2] = 1 - 2 * (qxx + qyy);
return Result;
}