// - edit Vector.equality.tt to modify
#nullable enable
namespace Brutal.Numerics;
public partial struct ulong4
{
///
public readonly override int GetHashCode()
{
return HashCode.Combine(X, Y, Z, W);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly bool Equals(ulong4 other)
{
return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z) && W.Equals(other.W);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly override bool Equals([NotNullWhen(true)] object? obj)
{
return obj is ulong4 other && Equals(other);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator ==(ulong4 a, ulong4 b)
{
return a.X == b.X && a.Y == b.Y && a.Z == b.Z && a.W == b.W;
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator !=(ulong4 a, ulong4 b)
{
return !(a == b);
}
}