diff options
author | rubenwardy <rubenwardy@gmail.com> | 2016-10-17 20:36:38 +0100 |
---|---|---|
committer | Ner'zhul <nerzhul@users.noreply.github.com> | 2016-10-17 22:03:49 +0200 |
commit | 0d740c5d829bceda8500fc505f4a65b967a1c151 (patch) | |
tree | 61b4dffb3c718379fe6391e5ea450fce4c0ff289 /doc | |
parent | a291cd61320c2d041d64ed2d56d073d70066efd1 (diff) | |
download | minetest-0d740c5d829bceda8500fc505f4a65b967a1c151.tar.gz minetest-0d740c5d829bceda8500fc505f4a65b967a1c151.tar.bz2 minetest-0d740c5d829bceda8500fc505f4a65b967a1c151.zip |
Builtin: Add vector.floor helper function
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8cb3f72bd..1e5084354 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1812,7 +1812,8 @@ Spatial Vectors * `vector.distance(p1, p2)`: returns a number * `vector.length(v)`: returns a number * `vector.normalize(v)`: returns a vector -* `vector.round(v)`: returns a vector, each dimension rounded to floor +* `vector.floor(v)`: returns a vector, each dimension rounded down +* `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 |