Class Vector2EqualityComparer
Use this class to compare two Vector2 objects for equality with NUnit constraints. Use the static Instance to have the calculation error value set to default 0.0001f. For any other error value, instantiate a new comparer object with the one argument constructor.
Implements
Inherited Members
Namespace: UnityEngine .TestTools .Utils
Assembly: solution.dll
Syntax
public class Vector2EqualityComparer : IEqualityComparer<Vector2>
Constructors
Name | Description |
---|---|
Vector2Equality |
Initializes an instance of Vector2Equality comparer with custom allowed calculation error. |
Properties
Name | Description |
---|---|
Instance | A comparer instance with the default error value set to 0.0001f. |
Methods
Name | Description |
---|---|
Equals(Vector2, Vector2) | Compares the actual and expected Vector2 objects for equality using the Are |
Get |
Serves as the default hash function. |