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.
Static properties
Syntax
Description
Instance
A comparer instance with the default error value 0.00001f.
Constructors
Syntax
Description
QuaternionEqualityComparer(float allowedError)
Creates an instance of the comparer with a custom allowed error value.