Skip to content

Api > Vector3 > Operator ( Vector3 == Vector3 )


Operator ( Vector3 == Vector3 )⚓︎

Returns true if two vectors are approximately equal.

LHS Type Symbol RHS Type Result Type
Vector3 == Vector3 boolean

Usage⚓︎

---@type Vector3
local lhs;

---@type Vector3
local rhs;

local result = lhs == rhs; -- result is boolean

Extra Detail⚓︎

To allow for floating point inaccuracies, the two vectors are considered equal if the magnitude of their difference is less than 1e-5.