mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update docs/vector-library.md
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
70a7f83da1
commit
ce84864084
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
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
|
### Library functions & constants
|
||||||
|
|
||||||
This RFC proposes the following basic functions and constants.
|
This RFC proposes the following basic functions and constants.
|
||||||
|
|
Loading…
Add table
Reference in a new issue