Beispiel #1
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;
 }
 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);
 }
Beispiel #3
0
 public double2x4(uint2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
 public float2x4(uint2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
Beispiel #5
0
 public static uint2 hashwide(uint2x4 v)
 {
     return((v.c0 * uint2(0x8E055BE5u, 0x6E624EB7u) +
             v.c1 * uint2(0x7383ED49u, 0xDD49C23Bu) +
             v.c2 * uint2(0xEBD0D005u, 0x91475DF7u) +
             v.c3 * uint2(0x55E84827u, 0x90A285BBu)) + 0x5D19E1D5u);
 }
 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);
 }
Beispiel #7
0
 public static uint hash(uint2x4 v)
 {
     return(csum(v.c0 * uint2(0x9F090439u, 0x5E9F85C9u) +
                 v.c1 * uint2(0x8C4CA03Fu, 0xB8D969EDu) +
                 v.c2 * uint2(0xAC5DB57Bu, 0xA91A02EDu) +
                 v.c3 * uint2(0xB3C49313u, 0xF43A9ABBu)) + 0x84E7E01Bu);
 }
Beispiel #8
0
 public static uint hash(uint2x4 v)
 {
     return(csum(v.c0 * uint2(0x91D13847u, 0x52F7230Fu) +
                 v.c1 * uint2(0xCF286E83u, 0xE121E6ADu) +
                 v.c2 * uint2(0xC9CA1249u, 0x69B60C81u) +
                 v.c3 * uint2(0xE0EB6C25u, 0xF648BEABu)) + 0x6BDB2B07u);
 }
 public static uint2 hashwide(uint2x4 v)
 {
     return (v.c0 * uint2(0x5D19E1D5u, 0xFAAF07DDu) + 
             v.c1 * uint2(0x625C45BDu, 0xC9F27FCBu) + 
             v.c2 * uint2(0x6D2523B1u, 0x6E2BF6A9u) + 
             v.c3 * uint2(0xCC74B3B7u, 0x83B58237u)) + 0x833E3E29u;
 }
 public static uint hash(uint2x4 v)
 {
     return csum(v.c0 * uint2(0x84E7E01Bu, 0x8E055BE5u) + 
                 v.c1 * uint2(0x6E624EB7u, 0x7383ED49u) + 
                 v.c2 * uint2(0xDD49C23Bu, 0xEBD0D005u) + 
                 v.c3 * uint2(0x91475DF7u, 0x55E84827u)) + 0x90A285BBu;
 }
 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));
 }
Beispiel #12
0
 public static int2x4 int2x4(uint2x4 v)
 {
     return(new int2x4(v));
 }
Beispiel #13
0
 public static double2x4 double2x4(uint2x4 v)
 {
     return(new double2x4(v));
 }
 public static float2x4 float2x4(uint2x4 v)
 {
     return(new float2x4(v));
 }