Vector.one

From GiderosMobile
Revision as of 10:07, 2 February 2026 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

(vector) = vector.one

Return values

Returns (vector) the vector with coordinates set to 1

Example

local v1 : vector = vector.one
print(v1) -- 1, 1, 1