Co-authored-by: Varun Saini <61795485+vrn-sn@users.noreply.github.com>
This commit is contained in:
ffrostfall 2024-09-09 20:04:32 -04:00 committed by GitHub
parent 3f2e8b48fe
commit f10b2275ec
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ 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. 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. 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. 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 fourth `w` component.
This mode will be referred to as '4-wide mode' in this proposal. This mode will be referred to as '4-wide mode' in this proposal.
### Library functions & constants ### Library functions & constants