示例#1
0
 public DebuggerProxy(bool2 vec)
 {
     x = vec.x;
     y = vec.y;
 }
示例#2
0
 public bool2x2(bool v)
 {
     this.c0 = v;
     this.c1 = v;
 }
示例#3
0
 public bool2x3(bool2 c0, bool2 c1, bool2 c2)
 {
     this.c0 = c0;
     this.c1 = c1;
     this.c2 = c2;
 }
示例#4
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool all(bool2 a)
 {
     return(a.x && a.y);
 }
示例#5
0
 public static bool2x2 bool2x2(bool2 c0, bool2 c1)
 {
     return(new bool2x2(c0, c1));
 }
示例#6
0
 public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3)
 {
     return(new bool2x4(c0, c1, c2, c3));
 }
示例#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));
 }
示例#8
0
 public static bool2 bool2(bool2 xy)
 {
     return(new bool2(xy));
 }
示例#9
0
 public static uint hash(bool2 v)
 {
     return(csum(select(uint2(0x90A285BBu, 0x5D19E1D5u), uint2(0xFAAF07DDu, 0x625C45BDu), v)));
 }
示例#10
0
 public static fix64p2 fix64p2(bool2 v)
 {
     return(new fix64p2(v));
 }
示例#11
0
 public DebuggerProxy(bool2 v)
 {
     x = v.x;
     y = v.y;
 }
示例#12
0
 public fix64p2(bool2 v)
 {
     this.x = v.x ? fix64p.One : fix64p.zero;
     this.y = v.y ? fix64p.One : fix64p.zero;
 }
示例#13
0
 public static int2 int2(bool2 v)
 {
     return(new int2(v));
 }
示例#14
0
 public int2(bool2 v)
 {
     this.x = v.x ? 1 : 0;
     this.y = v.y ? 1 : 0;
 }
示例#15
0
 public static double2 double2(bool2 v)
 {
     return(new double2(v));
 }
示例#16
0
 public static uint2 hashwide(bool2 v)
 {
     return(select(uint2(0xC9F27FCBu, 0x6D2523B1u), uint2(0x6E2BF6A9u, 0xCC74B3B7u), v));
 }
示例#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));
 }
示例#18
0
 public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x)
 {
     return(select_shuffle_component(a, b, x));
 }
示例#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));
 }
示例#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)));
 }
示例#21
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool any(bool2 a)
 {
     return(a.x || a.y);
 }
示例#22
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public bool3(bool2 xy, bool z)
 {
     this.x = xy.x;
     this.y = xy.y;
     this.z = z;
 }
示例#23
0
 public bool2x2(bool2 c0, bool2 c1)
 {
     this.c0 = c0;
     this.c1 = c1;
 }
示例#24
0
 public uint2(bool2 v)
 {
     this.x = v.x ? 1u : 0u;
     this.y = v.y ? 1u : 0u;
 }
示例#25
0
 public bool2x2(bool m00, bool m01,
                bool m10, bool m11)
 {
     this.c0 = new bool2(m00, m10);
     this.c1 = new bool2(m01, m11);
 }
示例#26
0
 public static uint2 uint2(bool2 v)
 {
     return(new uint2(v));
 }
示例#27
0
 public static bool2x3 bool2x3(bool2 c0, bool2 c1, bool2 c2)
 {
     return(new bool2x3(c0, c1, c2));
 }
示例#28
0
 public double2(bool2 v)
 {
     this.x = v.x ? 1.0 : 0.0;
     this.y = v.y ? 1.0 : 0.0;
 }
示例#29
0
 public bool2x3(bool v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
示例#30
0
 public static float2 float2(bool2 v)
 {
     return(new float2(v));
 }