eq

fun eq(other: Vec2, equivalence: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Boolean(source)

Tests if two vectors are approximately equal.

Return

True if the vectors are approximately equal, false otherwise.

Parameters

other

The other vector to compare with.

equivalence

The equivalence used to compare the double values. Default is DEFAULT_DOUBLE_EQUIVALENCE.