Browse Source

Add vec3(quat) desc

Jon 1 year ago
parent
commit
12ab9e8aaf
2 changed files with 17 additions and 1 deletions
  1. 9 1
      api/lovr/math/newVec3.lua
  2. 8 0
      api/lovr/math/vec3.lua

+ 9 - 1
api/lovr/math/newVec3.lua

@@ -25,6 +25,10 @@ return {
     m = {
       type = 'Mat4',
       description = 'A matrix to use the position of.'
+    },
+    q = {
+      type = 'Quat',
+      description = 'A quat to use the direction of.'
     }
   },
   returns = {
@@ -45,7 +49,11 @@ return {
     {
       arguments = { 'm' },
       returns = { 'v' }
-    }
+    },
+    {
+      arguments = { 'q' },
+      returns = { 'v' }
+    },
   },
   related = {
     'lovr.math.vec3',

+ 8 - 0
api/lovr/math/vec3.lua

@@ -27,6 +27,10 @@ return {
     m = {
       type = 'Mat4',
       description = 'A matrix to use the position of.'
+    },
+    q = {
+      type = 'Quat',
+      description = 'A quat to use the direction of.'
     }
   },
   returns = {
@@ -47,6 +51,10 @@ return {
     {
       arguments = { 'm' },
       returns = { 'v' }
+    },
+    {
+      arguments = { 'q' },
+      returns = { 'v' }
     }
   },
   related = {