Vector.min

From GiderosMobile

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