bjorn 6 years ago
parent
commit
7409ef0d30
4 changed files with 1438 additions and 2374 deletions
  1. 1432 2363
      api/init.lua
  2. 2 2
      api/lovr/math/Pool/mat4.lua
  3. 4 4
      api/lovr/math/Pool/quat.lua
  4. 0 5
      api/lovr/math/Pool/vec3.lua

File diff suppressed because it is too large
+ 1432 - 2363
api/init.lua


+ 2 - 2
api/lovr/math/Pool/mat4.lua

@@ -18,9 +18,9 @@ return {
     },
     rotation = {
       type = 'quat',
-      default = '0, 0, 0, 0'<
+      default = '0, 0, 0, 0',
       description = 'The initial rotation of the matrix.'
-    }
+    },
     ['...'] = {
       type = 'number',
       description = '16 numbers to use as the raw values of the matrix (column-major).'

+ 4 - 4
api/lovr/math/Pool/quat.lua

@@ -67,15 +67,15 @@ return {
       returns = { 'q' }
     },
     {
-      description = 'Creates a quaternion from a direction vector.'
+      description = 'Creates a quaternion from a direction vector.',
       arguments = { 'v' },
       returns = { 'q' }
-    }<
+    },
     {
-      description = 'Creates a quaternion representing the rotation between two vectors.'
+      description = 'Creates a quaternion representing the rotation between two vectors.',
       arguments = { 'v', 'u' },
       returns = { 'q' }
-    }<
+    },
     {
       arguments = { 'm' },
       returns = { 'q' }

+ 0 - 5
api/lovr/math/Pool/vec3.lua

@@ -29,11 +29,6 @@ return {
     }
   },
   variants = {
-    {
-      description = 'Fills the vector with `0`.',
-      arguments = {},
-      returns = { 'v' }
-    },
     {
       arguments = { 'x', 'y', 'z' },
       returns = { 'v' }

Some files were not shown because too many files changed in this diff