summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2020-08-29 17:41:29 +0200
committerGitHub <noreply@github.com>2020-08-29 16:41:29 +0100
commit28e87ce9d5fdf163c1eb0daf83279e949f84765d (patch)
treeabf144b7c8e5ee21c5dfbd16495a70e3475a056e /doc/lua_api.txt
parent9976f36b18b8d227e3240feb24000dda0916ee44 (diff)
downloadminetest-28e87ce9d5fdf163c1eb0daf83279e949f84765d.tar.gz
minetest-28e87ce9d5fdf163c1eb0daf83279e949f84765d.tar.bz2
minetest-28e87ce9d5fdf163c1eb0daf83279e949f84765d.zip
Add vector.offset (#10321)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index acbaf421e..5ed84fe9a 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3062,10 +3062,12 @@ For the following functions, `v`, `v1`, `v2` are vectors,
* Returns in order minp, maxp vectors of the cuboid defined by `v1`, `v2`.
* `vector.angle(v1, v2)`:
* Returns the angle between `v1` and `v2` in radians.
-* `vector.dot(v1, v2)`
- * Returns the dot product of `v1` and `v2`
-* `vector.cross(v1, v2)`
- * Returns the cross product of `v1` and `v2`
+* `vector.dot(v1, v2)`:
+ * Returns the dot product of `v1` and `v2`.
+* `vector.cross(v1, v2)`:
+ * Returns the cross product of `v1` and `v2`.
+* `vector.offset(v, x, y, z)`:
+ * Returns the sum of the vectors `v` and `{x = x, y = y, z = z}`.
For the following functions `x` can be either a vector or a number: