Update docs/vector-library.md

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
ffrostfall 2024-09-09 12:51:02 -04:00 committed by GitHub
parent 70a7f83da1
commit ce84864084
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -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.