summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorANAND <ClobberXD@gmail.com>2019-03-17 07:35:03 +0530
committerParamat <paramat@users.noreply.github.com>2019-03-17 02:05:03 +0000
commit7f1c2b8a00ede0659746102762aeb1da487eb6f8 (patch)
tree0dd9b48cd77da498bc14ee6f48a05d7e862df4c4 /doc
parenteadcbe474a04174b78d35ab802e974bc2bf3fac6 (diff)
downloadminetest-7f1c2b8a00ede0659746102762aeb1da487eb6f8.tar.gz
minetest-7f1c2b8a00ede0659746102762aeb1da487eb6f8.tar.bz2
minetest-7f1c2b8a00ede0659746102762aeb1da487eb6f8.zip
Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 39e0a848d..899c0abdb 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2399,6 +2399,8 @@ For the following functions, `v`, `v1`, `v2` are vectors,
* Returns a boolean, `true` if the vectors are identical.
* `vector.sort(v1, v2)`:
* 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.
For the following functions `x` can be either a vector or a number: