Browse Source

Vec4 constructors;

bjorn 5 years ago
parent
commit
4c3cab99e6
2 changed files with 12 additions and 12 deletions
  1. 6 6
      api/init.lua
  2. 6 6
      api/lovr/math/Vec4/init.lua

+ 6 - 6
api/init.lua

@@ -17364,8 +17364,8 @@ return {
         },
         },
         {
         {
           name = "Vec4",
           name = "Vec4",
-          summary = "A 2D vector.",
-          description = "A vector object that holds two numbers.",
+          summary = "A 4D vector.",
+          description = "A vector object that holds four numbers.",
           key = "Vec4",
           key = "Vec4",
           module = "lovr.math",
           module = "lovr.math",
           methods = {
           methods = {
@@ -17771,12 +17771,12 @@ return {
             }
             }
           },
           },
           constructors = {
           constructors = {
-            "lovr.math.newVec2",
-            "lovr.math.vec2"
+            "lovr.math.newVec4",
+            "lovr.math.vec4"
           },
           },
           related = {
           related = {
-            "Vec3",
-            "Vec4"
+            "Vec2",
+            "Vec3"
           }
           }
         }
         }
       }
       }

+ 6 - 6
api/lovr/math/Vec4/init.lua

@@ -1,12 +1,12 @@
 return {
 return {
-  summary = 'A 2D vector.',
-  description = 'A vector object that holds two numbers.',
+  summary = 'A 4D vector.',
+  description = 'A vector object that holds four numbers.',
   constructors = {
   constructors = {
-    'lovr.math.newVec2',
-    'lovr.math.vec2'
+    'lovr.math.newVec4',
+    'lovr.math.vec4'
   },
   },
   related = {
   related = {
-    'Vec3',
-    'Vec4'
+    'Vec2',
+    'Vec3'
   }
   }
 }
 }