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