mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
41 lines
1,016 B
C#
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);
|
|
}
|
|
}
|