diff options
author | HybridDog <ovvv@web.de> | 2019-07-13 13:46:44 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-07-16 21:44:42 +0200 |
commit | 71db715ba56369c67aa3187315601e2ae25d719a (patch) | |
tree | ee101fc14029406b72581f61696b12a996e580b1 /doc | |
parent | 458f6175753314583637006f00c426ba22ba86d7 (diff) | |
download | minetest-71db715ba56369c67aa3187315601e2ae25d719a.tar.gz minetest-71db715ba56369c67aa3187315601e2ae25d719a.tar.bz2 minetest-71db715ba56369c67aa3187315601e2ae25d719a.zip |
Add vector.dot and vector.cross
Mostly copied from MarkuBu's code
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2650bfedf..be19d9e3d 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2517,6 +2517,10 @@ For the following functions, `v`, `v1`, `v2` are vectors, * Returns in order minp, maxp vectors of the cuboid defined by `v1`, `v2`. * `vector.angle(v1, v2)`: * Returns the angle between `v1` and `v2` in radians. +* `vector.dot(v1, v2)` + * Returns the dot product of `v1` and `v2` +* `vector.cross(v1, v2)` + * Returns the cross product of `v1` and `v2` For the following functions `x` can be either a vector or a number: |