Beispiel #1
0
 public static uint3x4 transpose(uint4x3 v)
 {
     return(uint3x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w,
                v.c2.x, v.c2.y, v.c2.z, v.c2.w));
 }
Beispiel #2
0
 public static float4x3 float4x3(uint4x3 v)
 {
     return(new float4x3(v));
 }
Beispiel #3
0
 public float4x3(uint4x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
Beispiel #4
0
 public static uint4 hashwide(uint4x3 v)
 {
     return((v.c0 * uint4(0x9CDC88F5u, 0xFA62D721u, 0x7E4DB1CFu, 0x68EEE0F5u) +
             v.c1 * uint4(0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u, 0x45A22087u) +
             v.c2 * uint4(0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu, 0xB546F2A5u)) + 0xBBCF63E7u);
 }
Beispiel #5
0
 public static uint hash(uint4x3 v)
 {
     return(csum(v.c0 * uint4(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu, 0x624256A3u) +
                 v.c1 * uint4(0x5292ADE1u, 0xD2E590E5u, 0xF25BE857u, 0x9BC17CE7u) +
                 v.c2 * uint4(0xC8B86851u, 0x64095221u, 0xADF428FFu, 0xA3977109u)) + 0x745ED837u);
 }
Beispiel #6
0
 public int4x3(uint4x3 v)
 {
     this.c0 = (int4)v.c0;
     this.c1 = (int4)v.c1;
     this.c2 = (int4)v.c2;
 }
Beispiel #7
0
 public static int4x3 int4x3(uint4x3 v)
 {
     return(new int4x3(v));
 }