mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02:00
updated @return on sort
This commit is contained in:
parent
533519d318
commit
4cf30a0e74
@ -262,7 +262,7 @@ end
|
|||||||
-- This enables convenient ingesting of positions from outside.
|
-- This enables convenient ingesting of positions from outside.
|
||||||
-- @param pos1 Vector3 The first vector to operate on.
|
-- @param pos1 Vector3 The first vector to operate on.
|
||||||
-- @param pos2 Vector3 The second vector to operate on.
|
-- @param pos2 Vector3 The second vector to operate on.
|
||||||
-- @returns Vector3,Vector3 The 2 sorted vectors.
|
-- @returns Vector3,Vector3 The 2 sorted vectors (min, max).
|
||||||
function Vector3.sort(pos1, pos2)
|
function Vector3.sort(pos1, pos2)
|
||||||
local pos1_new = Vector3.clone(pos1) -- This way we can accept non-Vector3 instances
|
local pos1_new = Vector3.clone(pos1) -- This way we can accept non-Vector3 instances
|
||||||
local pos2_new = Vector3.clone(pos2) -- This way we can accept non-Vector3 instances
|
local pos2_new = Vector3.clone(pos2) -- This way we can accept non-Vector3 instances
|
||||||
|
Loading…
Reference in New Issue
Block a user