Skip to content

Api > Vector2 > Max()


Vector2.Max(Vector2 lhs, Vector2 rhs)⚓︎

Returns a vector that is made from the largest components of two vectors.

Parameters:⚓︎

Name Type Description
lhs Vector2
rhs Vector2

Returns:⚓︎

type Description
Vector2 Max

Usage⚓︎

---@type Vector2
local lhs;

---@type Vector2
local rhs;


local val0 = Vector2:Max(lhs, rhs)