Vector.min
From GiderosMobile
Revision as of 12:57, 3 February 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2026.1<br/> '''Class:''' vector library<br/> === Description === Applies ''math.min'' to the corresponding components of the inpu...")
Available since: Gideros 2026.1
Class: vector library
Description
Applies math.min to the corresponding components of the input vectors.
(vector) = vector.min(...)
Equivalent to vector.create(math.min((...).x), math.min((...).y), math.min((...).z)).
Parameters
...: (vector) one or more input vectors
Return values
Returns (vector) returns the new vector with math.min applied to every components of the vectors
Example
local vec1 : vector = vector.create(1, -2.5, 3)
local vec2 : vector = vector.create(2, -1, 6)
local vec3 : vector = vector.create(1, 0, 1)
local mi = vector.min(vec1, vec2, vec3)
print(typeof(mi), mi) -- vector 1, -2.5, 1