GlobalGameJame/Library/PackageCache/com.unity.test-framework@1.1.9/UnityEngine.TestRunner/Utils/Vector3ComparerWithEqualsOperator.cs
JonatanRek bea2dce063 Initial
test
2020-01-31 16:10:04 +01:00

23 lines
650 B
C#

using System.Collections.Generic;
namespace UnityEngine.TestTools.Utils
{
public class Vector3ComparerWithEqualsOperator : IEqualityComparer<Vector3>
{
private static readonly Vector3ComparerWithEqualsOperator m_Instance = new Vector3ComparerWithEqualsOperator();
public static Vector3ComparerWithEqualsOperator Instance { get { return m_Instance; } }
private Vector3ComparerWithEqualsOperator() {}
public bool Equals(Vector3 expected, Vector3 actual)
{
return expected == actual;
}
public int GetHashCode(Vector3 vec3)
{
return 0;
}
}
}