epsilonEquals

open override fun epsilonEquals(other: ImmutableVector2, epsilon: Float): Boolean

Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing

Parameters

epsilon

Acceptable difference for members. A small value makes equality it stricter, while a big value makes equality fuzzier.


fun epsilonEquals(otherX: Float, otherY: Float, epsilon: Float): Boolean

Compares this vector with the (otherX, otherY) vector, using the supplied epsilon for fuzzy equality testing

Parameters

epsilon

Acceptable difference for members. A small value makes equality it stricter, while a big value makes equality fuzzier.