Operator ( - Vector2 )
7/14/25Less than 1 minute
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;Negates a vector. Each component in the result is negated.
| Symbol | RHS Type | Result Type |
|---|---|---|
| - | Vector2 | Vector2 |
---@type Vector2
local obj;
local result = -obj;