]> git.lizzy.rs Git - minetest.git/commit
Add vector.to_string and vector.from_string (#10323)
authorDS <vorunbekannt75@web.de>
Mon, 5 Apr 2021 13:55:56 +0000 (15:55 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Apr 2021 13:55:56 +0000 (15:55 +0200)
commit23325277659132e95b346307b591c944625bda16
tree29523e7d4334630a302ab573810643e87e61f38a
parent19c283546c5418382ed3ab648ca165ef1cc7994b
Add vector.to_string and vector.from_string (#10323)

Writing vectors as strings is very common and should belong to `vector.*`. `minetest.pos_to_string` is also too long to write, implies that one should only use it for positions and leaves no spaces after the commas.
builtin/common/tests/vector_spec.lua
builtin/common/vector.lua
doc/lua_api.txt