summaryrefslogtreecommitdiffstats
path: root/Server/Plugins
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-10 17:59:33 +0200
committerMattes D <github@xoft.cz>2016-06-10 17:59:33 +0200
commitce30e3f6661d5a386b2b12bae73980ec76928d47 (patch)
tree2c332eef23ae5eb816d08786fb2f87535b289ca5 /Server/Plugins
parentMerge pull request #3225 from cuberite/FixAutoAPI (diff)
downloadcuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.gz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.bz2
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.lz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.xz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.zst
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.zip
Diffstat (limited to 'Server/Plugins')
-rw-r--r--Server/Plugins/APIDump/Classes/Geometry.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua
index 8f2f76849..e068e227f 100644
--- a/Server/Plugins/APIDump/Classes/Geometry.lua
+++ b/Server/Plugins/APIDump/Classes/Geometry.lua
@@ -242,6 +242,10 @@ end
operator_mul = { Params = "number", Return = "Vector3d", Notes = "Returns a new Vector3d with each coord multiplied." },
operator_sub = { Params = "Vector3d", Return = "Vector3d", Notes = "Returns a new Vector3d containing the difference between this object and the specified vector." },
operator_plus = {Params = "Vector3d", Return = "Vector3d", Notes = "Returns a new Vector3d containing the sum of this vector and the specified vector" },
+ abs = { Params = "", Return = "", Notes = "<b>OBSOLETE</b>, use Abs() instead." },
+ clamp = { Params = "min, max", Return = "", Notes = "<b>OBSOLETE</b>, use Clamp() instead." },
+ Abs = { Params = "", Return = "", Notes = "Updates each coord to its absolute value." },
+ Clamp = { Params = "min, max", Return = "", Notes = "Clamps each coord into the specified range." },
Cross = { Params = "Vector3d", Return = "Vector3d", Notes = "Returns a new Vector3d that is a {{http://en.wikipedia.org/wiki/Cross_product|cross product}} of this vector and the specified vector." },
Dot = { Params = "Vector3d", Return = "number", Notes = "Returns the dot product of this vector and the specified vector." },
Equals = { Params = "Vector3d", Return = "bool", Notes = "Returns true if this vector is exactly equal to the specified vector." },
@@ -292,6 +296,10 @@ end
},
operator_plus = { Params = "Vector3f", Return = "Vector3f", Notes = "Returns a new Vector3f object that holds the vector sum of this vector and the specified vector." },
operator_sub = { Params = "Vector3f", Return = "Vector3f", Notes = "Returns a new Vector3f object that holds the vector differrence between this vector and the specified vector." },
+ abs = { Params = "", Return = "", Notes = "<b>OBSOLETE</b>, use Abs() instead." },
+ clamp = { Params = "min, max", Return = "", Notes = "<b>OBSOLETE</b>, use Clamp() instead." },
+ Abs = { Params = "", Return = "", Notes = "Updates each coord to its absolute value." },
+ Clamp = { Params = "min, max", Return = "", Notes = "Clamps each coord into the specified range." },
Cross = { Params = "Vector3f", Return = "Vector3f", Notes = "Returns a new Vector3f object that holds the cross product of this vector and the specified vector." },
Dot = { Params = "Vector3f", Return = "number", Notes = "Returns the dot product of this vector and the specified vector." },
Equals = { Params = "Vector3f", Return = "bool", Notes = "Returns true if the specified vector is exactly equal to this vector." },
@@ -325,9 +333,15 @@ end
{ Params = "x, y, z", Return = "Vector3i", Notes = "Creates a new Vector3i object with the specified coords." },
{ Params = "{{Vector3d}}", Return = "Vector3i", Notes = "Creates a new Vector3i object with coords copied and floor()-ed from the specified {{Vector3d}}." },
},
+ abs = { Params = "", Return = "", Notes = "<b>OBSOLETE</b>, use Abs() instead." },
+ clamp = { Params = "min, max", Return = "", Notes = "<b>OBSOLETE</b>, use Clamp() instead." },
+ Abs = { Params = "", Return = "", Notes = "Updates each coord to its absolute value." },
+ Clamp = { Params = "min, max", Return = "", Notes = "Clamps each coord into the specified range." },
+ Cross = { Params = "Vector3d", Return = "Vector3d", Notes = "Returns a new Vector3d that is a {{http://en.wikipedia.org/wiki/Cross_product|cross product}} of this vector and the specified vector." },
+ Dot = { Params = "Vector3d", Return = "number", Notes = "Returns the dot product of this vector and the specified vector." },
Equals = { Params = "Vector3i", Return = "bool", Notes = "Returns true if this vector is exactly the same as the specified vector." },
Length = { Params = "", Return = "number", Notes = "Returns the (euclidean) length of this vector." },
- Move = { Params = "X, Y, Z", Return = "", Notes = "Moves the vector by the specified amount in each axis direction." },
+ Move = { Params = "x, y, z", Return = "", Notes = "Moves the vector by the specified amount in each axis direction." },
Set = { Params = "x, y, z", Return = "", Notes = "Sets all the coords of the vector at once" },
SqrLength = { Params = "", Return = "number", Notes = "Returns the (euclidean) length of this vector, squared. This operation is slightly less computationally expensive than Length(), while it conserves some properties of Length(), such as comparison." },
},