From 6c8890aabedd03c30bcc6615148d5fff00fce9f8 Mon Sep 17 00:00:00 2001 From: Jack <85714123+jackdotink@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:56:08 -0500 Subject: [PATCH] Update vector-library.md --- docs/vector-library.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/vector-library.md b/docs/vector-library.md index aaac1e8..4d8edd6 100644 --- a/docs/vector-library.md +++ b/docs/vector-library.md @@ -54,33 +54,33 @@ Returns the angle between two vectors in radians. `vector.abs(vec: vector): vector` -Applies math.abs component-wise for each vector. Equivalent of: `vector(math.abs(vec.x), ect)` +Applies math.abs component-wise for each vector. Equivalent of: `vector(math.abs(vec.x), ect)`. `vector.sign(vec: vector): vector` -Applies math.sign component-wise for each vector. Equivalent of: `vector(math.sign(vec.x), ect)` +Applies `math.sign` component-wise for each vector. Equivalent of: `vector(math.sign(vec.x), ect)`. `vector.clamp(vec: vector, min: vector, max: vector): vector` -Applies math.clamp component-wise for each vector. Equivalent of: `vector(math.clamp(vec.x, min.x, max.x), ect)` +Applies `math.clamp` component-wise for each vector. Equivalent of: `vector(math.clamp(vec.x, min.x, max.x), ect)`. -`vector.max(list: ...vector): vector` +`vector.max(...: vector): vector` -Finds the highest vector xyz in the list of vectors provided and returns a new vector with its xyz being those highest values +Applies `math.max` component-wise for each vector. Equivalent of: `vector(math.max((...).x), ect)`. -`vector.min(list: ...vector): vector` +`vector.min(...: vector): vector` -Inverse of `vector.min` where instead of looking for the highest it looks for the lowest +Applies `math.min` component-wise for each vector. Equivalent of: `vector(math.max((...).x), ect)`. --- `vector.zero` -Vector where `x=0, y=0, z=0, w?=0` +Vector where `x=0, y=0, z=0, w?=0`. `vector.one` -Vector where `x=1, y=1, z=1, w?=1` +Vector where `x=1, y=1, z=1, w?=1`. ---