Vector.zero: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
Constant vector with all components set to 0. Includes the fourth component in 4-wide mode. | Constant vector with all components set to 0. Includes the fourth component in 4-wide mode. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
( | (vector) = vector.zero | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Return values === | === Return values === | ||
'''Returns''' ( | '''Returns''' (vector) the vector with coordinates set to 0<br/> | ||
=== Example === | === Example === | ||
Revision as of 09:05, 2 February 2026
Available since: Gideros 2026.1
Class: vector library
Description
Constant vector with all components set to 0. Includes the fourth component in 4-wide mode.
(vector) = vector.zero
Return values
Returns (vector) the vector with coordinates set to 0
Example
local v0 = vector.zero
print(v0) -- 0, 0, 0