Vector4ComparerWithEqualsOperator.cs 650 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. namespace UnityEngine.TestTools.Utils
  3. {
  4. public class Vector4ComparerWithEqualsOperator : IEqualityComparer<Vector4>
  5. {
  6. private static readonly Vector4ComparerWithEqualsOperator m_Instance = new Vector4ComparerWithEqualsOperator();
  7. public static Vector4ComparerWithEqualsOperator Instance { get { return m_Instance; } }
  8. private Vector4ComparerWithEqualsOperator() {}
  9. public bool Equals(Vector4 expected, Vector4 actual)
  10. {
  11. return expected == actual;
  12. }
  13. public int GetHashCode(Vector4 vec4)
  14. {
  15. return 0;
  16. }
  17. }
  18. }