Operator ( Vector2 == Vector2 )
Returns true if two vectors are approximately equal. To allow for floating point inaccuracies, the two vectors are considered equal if the magnitude of their difference is less than 1e-5.
LHS Type | Symbol | RHS Type | Result Type |
---|---|---|---|
Vector2 | == | Vector2 | boolean |
Usage
---@type Vector2
local lhs;
---@type Vector2
local rhs;
local result = lhs == rhs; -- result is boolean