aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2017-01-12 11:27:39 -0800
committerparamat <mat.gregory@virginmedia.com>2017-01-23 07:38:39 +0000
commit2d7a6f2cc0717eb92de4a91326a871d525ce513d (patch)
tree78cf903fb446e581e9684c9cfbbe00fbd9d4a8fc /doc
parentd04d8aba7029a2501854a2838fd282b81358a54e (diff)
downloadminetest-2d7a6f2cc0717eb92de4a91326a871d525ce513d.tar.gz
minetest-2d7a6f2cc0717eb92de4a91326a871d525ce513d.tar.bz2
minetest-2d7a6f2cc0717eb92de4a91326a871d525ce513d.zip
Vector: Add vector.sort(a, b): return box edges
This function returns the box corners of the smallest box that includes the two given coordinates.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 2a0b72053..31a1daefb 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1850,6 +1850,7 @@ Spatial Vectors
* `vector.round(v)`: returns a vector, each dimension rounded to nearest int
* `vector.apply(v, func)`: returns a vector
* `vector.equals(v1, v2)`: returns a boolean
+* `vector.sort(v1, v2)`: returns minp, maxp vectors of the cuboid defined by v1 and v2
For the following functions `x` can be either a vector or a number: