brutal/brutal.numerics/Brutal.Numerics/Vector/bool3/bool3.equality.gen.cs
2026-10-15 14:12:02 +13:00

41 lines
1,016 B
C#

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