public DebuggerProxy(bool2 vec) { x = vec.x; y = vec.y; }
public bool2x2(bool v) { this.c0 = v; this.c1 = v; }
public bool2x3(bool2 c0, bool2 c1, bool2 c2) { this.c0 = c0; this.c1 = c1; this.c2 = c2; }
[MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool all(bool2 a) { return(a.x && a.y); }
public static bool2x2 bool2x2(bool2 c0, bool2 c1) { return(new bool2x2(c0, c1)); }
public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) { return(new bool2x4(c0, c1, c2, c3)); }
[MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 select(float2 a, float2 b, bool2 c) { return(new float2(c.x ? b.x : a.x, c.y ? b.y : a.y)); }
public static bool2 bool2(bool2 xy) { return(new bool2(xy)); }
public static uint hash(bool2 v) { return(csum(select(uint2(0x90A285BBu, 0x5D19E1D5u), uint2(0xFAAF07DDu, 0x625C45BDu), v))); }
public static fix64p2 fix64p2(bool2 v) { return(new fix64p2(v)); }
public DebuggerProxy(bool2 v) { x = v.x; y = v.y; }
public fix64p2(bool2 v) { this.x = v.x ? fix64p.One : fix64p.zero; this.y = v.y ? fix64p.One : fix64p.zero; }
public static int2 int2(bool2 v) { return(new int2(v)); }
public int2(bool2 v) { this.x = v.x ? 1 : 0; this.y = v.y ? 1 : 0; }
public static double2 double2(bool2 v) { return(new double2(v)); }
public static uint2 hashwide(bool2 v) { return(select(uint2(0xC9F27FCBu, 0x6D2523B1u), uint2(0x6E2BF6A9u, 0xCC74B3B7u), v)); }
public static uint2 select(uint2 a, uint2 b, bool2 c) { return(new uint2(c.x ? b.x : a.x, c.y ? b.y : a.y)); }
public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x) { return(select_shuffle_component(a, b, x)); }
[MethodImpl((MethodImplOptions)0x100)] // agressive inline public static int2 select(int2 a, int2 b, bool2 c) { return(new int2(c.x ? b.x : a.x, c.y ? b.y : a.y)); }
public static bool2 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y) { return(bool2( select_shuffle_component(a, b, x), select_shuffle_component(a, b, y))); }
[MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool any(bool2 a) { return(a.x || a.y); }
[MethodImpl((MethodImplOptions)0x100)] // agressive inline public bool3(bool2 xy, bool z) { this.x = xy.x; this.y = xy.y; this.z = z; }
public bool2x2(bool2 c0, bool2 c1) { this.c0 = c0; this.c1 = c1; }
public uint2(bool2 v) { this.x = v.x ? 1u : 0u; this.y = v.y ? 1u : 0u; }
public bool2x2(bool m00, bool m01, bool m10, bool m11) { this.c0 = new bool2(m00, m10); this.c1 = new bool2(m01, m11); }
public static uint2 uint2(bool2 v) { return(new uint2(v)); }
public static bool2x3 bool2x3(bool2 c0, bool2 c1, bool2 c2) { return(new bool2x3(c0, c1, c2)); }
public double2(bool2 v) { this.x = v.x ? 1.0 : 0.0; this.y = v.y ? 1.0 : 0.0; }
public bool2x3(bool v) { this.c0 = v; this.c1 = v; this.c2 = v; }
public static float2 float2(bool2 v) { return(new float2(v)); }