mirror of
https://github.com/minetest/minetest.git
synced 2024-10-02 07:53:09 +02:00
add documentation to lua_api.md
This commit is contained in:
parent
affde8fa0b
commit
3a76251bc3
@ -3825,6 +3825,8 @@ vectors are written like this: `(x, y, z)`:
|
||||
`vector.new(v)` does the same as `vector.copy(v)`
|
||||
* `vector.zero()`:
|
||||
* Returns a new vector `(0, 0, 0)`.
|
||||
* `vector.random_direction()`:
|
||||
* Returns a new vector of length 1, pointing into a direction chosen uniformly at random.
|
||||
* `vector.copy(v)`:
|
||||
* Returns a copy of the vector `v`.
|
||||
* `vector.from_string(s[, init])`:
|
||||
|
Loading…
Reference in New Issue
Block a user