Skip to content

Api > Vector2 > Operator ( Vector2 - Vector2 )


Operator ( Vector2 - Vector2 )⚓︎

Subtracts one vector from another.

LHS Type Symbol RHS Type Result Type
Vector2 - Vector2 Vector2

Usage⚓︎

---@type Vector2
local lhs;

---@type Vector2
local rhs;

local result = lhs - rhs; -- result is Vector2