From ce84864084bd4eec043bc727c72a26324fa0524e Mon Sep 17 00:00:00 2001 From: ffrostfall <80861876+ffrostfall@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:51:02 -0400 Subject: [PATCH] Update docs/vector-library.md Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> --- docs/vector-library.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/vector-library.md b/docs/vector-library.md index 73c28b6..96a2818 100644 --- a/docs/vector-library.md +++ b/docs/vector-library.md @@ -12,6 +12,10 @@ Currently, vectors are a primitive type implemented internally. All of the heavy The default metatable for vectors should now be the `vector` library. While buffers and coroutines do not have this, vectors likely should for ergonomics. +Luau VM can be configured in two different vector value modes. +Default configuration uses vectors with 3 components (`xyz`) and if the `LUA_VECTOR_SIZE` configuration option is set to 4, vector values get an additional forth `w` component. +This mode will be referred to as '4-wide mode' in this proposal. + ### Library functions & constants This RFC proposes the following basic functions and constants.