Skip to main content

Operator ( - Vector2 )

Negates a vector. Each component in the result is negated.

SymbolRHS TypeResult Type
-Vector2Vector2

Usage

---@type Vector2
local obj;

local result = -obj;