// - edit Vector.numerics.tt to modify
#nullable enable
namespace Brutal.Numerics;
// INumberBase
public partial struct bool3
{
///
public static bool3 Zero => new(false);
///
public static bool3 One => new(true);
}
// IBitwiseOperators
public partial struct bool3 : IBitwiseOperators
{
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool3 operator |(bool3 a, bool3 b)
{
return new bool3(a.X | b.X, a.Y | b.Y, a.Z | b.Z);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool3 operator &(bool3 a, bool3 b)
{
return new bool3(a.X & b.X, a.Y & b.Y, a.Z & b.Z);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool3 operator ^(bool3 a, bool3 b)
{
return new bool3(a.X ^ b.X, a.Y ^ b.Y, a.Z ^ b.Z);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool3 operator !(bool3 value)
{
return new bool3(!value.X, !value.Y, !value.Z);
}
// bool has no ~; the interface's complement is componentwise logical not
[MethodImpl(MethodImplOptions.AggressiveInlining)]
static bool3 IBitwiseOperators.operator ~(bool3 value)
{
return !value;
}
}