Try it in your browserpreview Source

Vector3 Fuzzy EqualsRoblox@lune/roblox✎

Equality within a tolerance. What you want instead of `=` on anything that came out of arithmetic.

Pending review

Vector3 Fuzzy EqualsVector3.zeroAVector3.zeroBdefaultEpsilon
  • Roblox's, and Lune's too — a Lune graph needs @lune/roblox required for it
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • A:Vector3= Vector3.zerosplittable
    Splits into X, Y, Z.
  • B:Vector3= Vector3.zerosplittable
    Splits into X, Y, Z.
  • Epsilon:number= 0.00001

Outputs

  • result:boolean

What it compiles to

luau
print(Vector3.zero:FuzzyEq(Vector3.zero))

Not reviewed yet