mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Builtin: Add vector.floor helper function
This commit is contained in:
parent
a291cd6132
commit
0d740c5d82
2 changed files with 10 additions and 2 deletions
|
@ -1812,7 +1812,8 @@ Spatial Vectors
|
|||
* `vector.distance(p1, p2)`: returns a number
|
||||
* `vector.length(v)`: returns a number
|
||||
* `vector.normalize(v)`: returns a vector
|
||||
* `vector.round(v)`: returns a vector, each dimension rounded to floor
|
||||
* `vector.floor(v)`: returns a vector, each dimension rounded down
|
||||
* `vector.round(v)`: returns a vector, each dimension rounded to nearest int
|
||||
* `vector.apply(v, func)`: returns a vector
|
||||
* `vector.equals(v1, v2)`: returns a boolean
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue