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