瀏覽代碼

Added comment with slerp equation

Christophe Riccio 15 年之前
父節點
當前提交
ac6fd19510
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      glm/gtc/quaternion.inl

+ 1 - 0
glm/gtc/quaternion.inl

@@ -327,6 +327,7 @@ namespace quaternion{
 	        q1.w * q2.z + q1.z * q2.w + q1.x * q2.y - q1.y * q2.x);
     }
 
+	// (x * sin(1 - a) * angle / sin(angle)) + (y * sin(a) * angle / sin(angle))
     template <typename T>
     inline detail::tquat<T> mix
 	(