Class Vector2ComparerWithEqualsOperator
Use these classes to compare two objects of the same type for equality within the range of a given tolerance using NUnit or custom constraints . Call Instance to apply the default calculation error value to the comparison.
Implements
Inherited Members
Namespace: UnityEngine.TestTools.Utils
Assembly: solution.dll
Syntax
public class Vector2ComparerWithEqualsOperator : IEqualityComparer<Vector2>
Properties
Name | Description |
---|---|
Instance | A singleton instance of the comparer with a predefined default error value. |
Methods
Name | Description |
---|---|
Equals(Vector2, Vector2) | Compares the actual and expected objects for equality using a custom comparison mechanism. |
GetHashCode(Vector2) | Serves as the default hash function. |