Просмотр исходного кода

Merge branch '0.9.1' into noise

Christophe Riccio 14 лет назад
Родитель
Сommit
6d5cfcd4b0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      glm/gtc/quaternion.inl

+ 1 - 1
glm/gtc/quaternion.inl

@@ -422,7 +422,7 @@ namespace quaternion{
 		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>