Browse Source

Fixed quaternion inverse, ticket #82

Christophe Riccio 14 years ago
parent
commit
c7af08f4ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtc/quaternion.inl

+ 1 - 1
glm/gtc/quaternion.inl

@@ -422,7 +422,7 @@ namespace quaternion{
 		detail::tquat<T> const & q
 		detail::tquat<T> const & q
 	)
 	)
     {
     {
-        return gtc::quaternion::conjugate(q) / gtc::quaternion::length(q);
+        return gtc::quaternion::conjugate(q) / gtc::quaternion::dot(q, q);
     }
     }
 
 
     template <typename T> 
     template <typename T>