Difference between revisions of "Vector.one"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2026.1<br/> '''Class:''' vector library<br/> === Description === Constant vector with all components set to 1. Includes the fourt...") |
|||
| Line 18: | Line 18: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | {{ | + | {{vector}} |
Latest revision as of 02:54, 1 February 2026
Available since: Gideros 2026.1
Class: vector library
Description
Constant vector with all components set to 1. Includes the fourth component in 4-wide mode.
(table) = vector.one
Return values
Returns (table) the vector coordinates set to 1
Example
local v1 = vector.one
print(v1) -- 1, 1, 1