Vector library
From GiderosMobile
Supported platforms: ![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2026.1
Description
This library implements functionality for the vector type in addition to the built-in primitive operator support. Default configuration uses vectors with 3 components (x, y, and z). If the 4-wide mode is enabled by setting the LUA_VECTOR_SIZE VM configuration to 4, vectors get an additional w component.
Individual vector components can be accessed using the fields x or X, y or Y, z or Z, and w or W in 4-wide mode. Since vector values are immutable, writes to individual components are not supported.
Reference
https://luau.org/library/#vector-library
Methodsvector.zero constant vector with all components set to 0 |
EventsConstants |