From 70a7f83da163c74f4675ee2d43aca7eee8d04bfc Mon Sep 17 00:00:00 2001 From: ffrostfall <80861876+ffrostfall@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:50:55 -0400 Subject: [PATCH] Update docs/vector-library.md Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> --- docs/vector-library.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/vector-library.md b/docs/vector-library.md index bb07c73..73c28b6 100644 --- a/docs/vector-library.md +++ b/docs/vector-library.md @@ -18,7 +18,11 @@ This RFC proposes the following basic functions and constants. `vector.create(x: number, y: number, z: number): vector` -Creates a new vector with the given components. When in 4-wide mode takes a fourth `w` argument. None of the arguments are optional. +Creates a new vector with the given components. In 4-wide mode, the forth `w` component value is set to 0.0. + +`vector.create(x: number, y: number, z: number, w: number): vector` + +Additional constructor available in 4-wide mode. Creates a new vector with the given components. `vector.magnitude(vec: vector): number`