Vector3 Fuzzy EqualsRoblox@lune/roblox✎
Equality within a tolerance. What you want instead of `=` on anything that came out of arithmetic.
Pending review
- Roblox's, and Lune's too — a Lune graph needs
@lune/robloxrequired 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.zerosplittableSplits into X, Y, Z. - B:Vector3=
Vector3.zerosplittableSplits 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