Api > Vector3 > Operator ( Vector3 - Vector3 )
Operator ( Vector3 - Vector3 )⚓︎
Subtracts one vector from another.
LHS Type | Symbol | RHS Type | Result Type |
---|---|---|---|
Vector3 | - | Vector3 | Vector3 |
Usage⚓︎
---@type Vector3
local lhs;
---@type Vector3
local rhs;
local result = lhs - rhs; -- result is Vector3
Extra Detail⚓︎
Subtracts each component of b from a.