浏览代码

Added length implementation

Christophe Riccio 13 年之前
父节点
当前提交
fa84c6d1b0
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      glm/gtc/quaternion.inl

+ 6 - 0
glm/gtc/quaternion.inl

@@ -31,6 +31,12 @@
 namespace glm{
 namespace detail
 {
+    template <typename T>
+    GLM_FUNC_QUALIFIER typename tquat<T>::size_type tquat<T>::length() const
+    {
+        return 4;
+    }
+
     template <typename T> 
     GLM_FUNC_QUALIFIER tquat<T>::tquat() : 
         x(0),