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