Beispiel #1
0
 public DebuggerProxy(bool2 vec)
 {
     x = vec.x;
     y = vec.y;
 }
Beispiel #2
0
 public bool2x2(bool v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Beispiel #3
0
 public bool2x3(bool2 c0, bool2 c1, bool2 c2)
 {
     this.c0 = c0;
     this.c1 = c1;
     this.c2 = c2;
 }
Beispiel #4
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool all(bool2 a)
 {
     return(a.x && a.y);
 }
Beispiel #5
0
 public static bool2x2 bool2x2(bool2 c0, bool2 c1)
 {
     return(new bool2x2(c0, c1));
 }
Beispiel #6
0
 public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3)
 {
     return(new bool2x4(c0, c1, c2, c3));
 }
Beispiel #7
0
 [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));
 }
Beispiel #8
0
 public static bool2 bool2(bool2 xy)
 {
     return(new bool2(xy));
 }
Beispiel #9
0
 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));
 }
Beispiel #11
0
 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;
 }
Beispiel #13
0
 public static int2 int2(bool2 v)
 {
     return(new int2(v));
 }
Beispiel #14
0
 public int2(bool2 v)
 {
     this.x = v.x ? 1 : 0;
     this.y = v.y ? 1 : 0;
 }
Beispiel #15
0
 public static double2 double2(bool2 v)
 {
     return(new double2(v));
 }
Beispiel #16
0
 public static uint2 hashwide(bool2 v)
 {
     return(select(uint2(0xC9F27FCBu, 0x6D2523B1u), uint2(0x6E2BF6A9u, 0xCC74B3B7u), v));
 }
Beispiel #17
0
 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));
 }
Beispiel #18
0
 public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x)
 {
     return(select_shuffle_component(a, b, x));
 }
Beispiel #19
0
 [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));
 }
Beispiel #20
0
 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)));
 }
Beispiel #21
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool any(bool2 a)
 {
     return(a.x || a.y);
 }
Beispiel #22
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public bool3(bool2 xy, bool z)
 {
     this.x = xy.x;
     this.y = xy.y;
     this.z = z;
 }
Beispiel #23
0
 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;
 }
Beispiel #25
0
 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));
 }
Beispiel #27
0
 public static bool2x3 bool2x3(bool2 c0, bool2 c1, bool2 c2)
 {
     return(new bool2x3(c0, c1, c2));
 }
Beispiel #28
0
 public double2(bool2 v)
 {
     this.x = v.x ? 1.0 : 0.0;
     this.y = v.y ? 1.0 : 0.0;
 }
Beispiel #29
0
 public bool2x3(bool v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
Beispiel #30
0
 public static float2 float2(bool2 v)
 {
     return(new float2(v));
 }