vector: add @return for :sign()/abs(); Position: integer fields; fix register_on_generated.

This commit is contained in:
Alexander Chibrikin
2026-01-13 00:48:08 +03:00
parent 36cfa27d6c
commit 138ceae165
2 changed files with 16 additions and 11 deletions

View File

@@ -9,6 +9,7 @@
--- @operator div(number) : vector
vector = {}
--- Creates a new vector `(a, b, c)`.
--- * Deprecated: `vector.new()` does the same as `vector.zero()` and
--- `vector.new(v)` does the same as `vector.copy(v)`
@@ -90,9 +91,11 @@ function vector:round() end
--- Returns a vector where `math.sign` was called for each component.
--- See [Helper functions](https://api.luanti.org/helper-functions/) for details.
--- @return vector
function vector:sign() end
--- Returns a vector with absolute values for each component.
--- @return vector
function vector:abs() end
--- Applies a function to each component of the vector and returns a new vector.