From 0d740c5d829bceda8500fc505f4a65b967a1c151 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 17 Oct 2016 20:36:38 +0100 Subject: Builtin: Add vector.floor helper function --- doc/lua_api.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') 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 -- cgit v1.2.3