Skip to content

Api > Vector2 > Operator ( - Vector2 )


Operator ( - Vector2 )⚓︎

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

Symbol RHS Type Result Type
- Vector2 Vector2

Usage⚓︎

---@type Vector2
local obj;

local result = -obj;