From 4cf30a0e74e6da047f65d4962edee1eb08ac7c90 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 5 Aug 2021 10:41:35 -0700 Subject: [PATCH] updated @return on sort --- worldeditadditions/utils/vector3.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worldeditadditions/utils/vector3.lua b/worldeditadditions/utils/vector3.lua index 734aabb..ed4f9d9 100644 --- a/worldeditadditions/utils/vector3.lua +++ b/worldeditadditions/utils/vector3.lua @@ -66,11 +66,11 @@ function Vector3.sub(a, b) return Vector3.subtract(a, b) end -- Returns the result as a new vector. -- If 1 of the inputs is a number and the other a vector, then the number will -- be multiplied to each of the components of the vector. --- +-- -- If both of the inputs are vectors, then the components are multiplied -- by each other (NOT the cross product). In other words: -- a.x * b.x, a.y * b.y, a.z * b.z --- +-- -- @param a Vector3|number The first item to multiply. -- @param a Vector3|number The second item to multiply. -- @returns Vector3 The result as a new Vector3 object. @@ -262,7 +262,7 @@ end -- This enables convenient ingesting of positions from outside. -- @param pos1 Vector3 The first 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) 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 @@ -355,7 +355,7 @@ end -- ██ ██ ██████ █████ ██████ ███████ ██ ██ ██ ██████ -- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ -- ██████ ██ ███████ ██ ██ ██ ██ ██ ██████ ██ ██ --- +-- -- ██████ ██ ██ ███████ ██████ ██████ ██ ██████ ███████ ███████ -- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ -- ██ ██ ██ ██ █████ ██████ ██████ ██ ██ ██ █████ ███████