Optimized matrix inverse and division code (#149)

This commit is contained in:
Christophe Riccio
2014-01-11 16:44:15 +01:00
parent efdfa577ee
commit 90a249b5ff
9 changed files with 255 additions and 207 deletions

View File

@@ -82,9 +82,8 @@ namespace glm
T c = cos(a);
T s = sin(a);
detail::tvec3<T, P> axis = normalize(v);
detail::tvec3<T, P> temp = (T(1) - c) * axis;
detail::tvec3<T, P> axis(normalize(v));
detail::tvec3<T, P> temp((T(1) - c) * axis);
detail::tmat4x4<T, P> Rotate(detail::tmat4x4<T, P>::_null);
Rotate[0][0] = c + temp[0] * axis[0];