Пример #1
0
 public float2x4(uint2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
Пример #2
0
 public int2x4(uint2x4 v)
 {
     this.c0 = (int2)v.c0;
     this.c1 = (int2)v.c1;
     this.c2 = (int2)v.c2;
     this.c3 = (int2)v.c3;
 }
Пример #3
0
 public static uint2 hashwide(uint2x4 v)
 {
     return((v.c0 * uint2(0xB5D0BF63u, 0xF9102C5Fu) +
             v.c1 * uint2(0x9881FB9Fu, 0x56A1530Du) +
             v.c2 * uint2(0x804B722Du, 0x738E50E5u) +
             v.c3 * uint2(0x4FC93C25u, 0xCD0445A5u)) + 0xD2B90D9Bu);
 }
Пример #4
0
 public static uint hash(uint2x4 v)
 {
     return(csum(v.c0 * uint2(0x9DF50593u, 0xF18EEB85u) +
                 v.c1 * uint2(0x9E19BFC3u, 0x8196B06Fu) +
                 v.c2 * uint2(0xD24EFA19u, 0x7D8048BBu) +
                 v.c3 * uint2(0x713BD06Fu, 0x753AD6ADu)) + 0xD19764C7u);
 }
Пример #5
0
 public static uint4x2 transpose(uint2x4 v)
 {
     return(uint4x2(
                v.c0.x, v.c0.y,
                v.c1.x, v.c1.y,
                v.c2.x, v.c2.y,
                v.c3.x, v.c3.y));
 }
Пример #6
0
 public static float2x4 float2x4(uint2x4 v)
 {
     return(new float2x4(v));
 }
Пример #7
0
 public static int2x4 int2x4(uint2x4 v)
 {
     return(new int2x4(v));
 }