Skip to main content

Operator ( Vector2 - Vector2 )

Subtracts one vector from another.

LHS TypeSymbolRHS TypeResult Type
Vector2-Vector2Vector2

Usage

---@type Vector2
local lhs;

---@type Vector2
local rhs;

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