add documentation to lua_api.md

This commit is contained in:
Erich Schubert 2024-06-27 14:28:45 +02:00 committed by GitHub
parent affde8fa0b
commit 3a76251bc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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])`: