1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738)

This commit is contained in:
ANAND 2019-03-17 07:35:03 +05:30 committed by Paramat
parent eadcbe474a
commit 7f1c2b8a00
2 changed files with 11 additions and 0 deletions

View file

@ -2399,6 +2399,8 @@ For the following functions, `v`, `v1`, `v2` are vectors,
* Returns a boolean, `true` if the vectors are identical.
* `vector.sort(v1, v2)`:
* 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.
For the following functions `x` can be either a vector or a number: