Graphmath.Vec2.equal
You're seeing just the function
equal
, go back to Graphmath.Vec2 module for more information.
Link to this function
equal(arg1, arg2)
Specs
equal(a, b)
checks to see if two vec2s a and b are equivalent.
a
is the vec2
.
b
is the vec2
.
It returns true if the vectors have equal elements.
Note that due to precision issues, you may want to use equal/3
instead.
Link to this function
equal(arg1, arg2, eps)
Specs
equal(a, b, eps)
checks to see if two vec2s a and b are equivalent within some tolerance.
a
is the vec2
.
b
is the vec2
.
eps
is the tolerance, a float.
It returns true if the vectors have equal elements within some tolerance.