Пример #1
0
 public double4x2(float4x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Пример #2
0
 public static double4x2 double4x2(float4x2 v)
 {
     return(new double4x2(v));
 }
Пример #3
0
 public static uint4x2 uint4x2(float4x2 v)
 {
     return(new uint4x2(v));
 }
Пример #4
0
 public uint4x2(float4x2 v)
 {
     this.c0 = (uint4)v.c0;
     this.c1 = (uint4)v.c1;
 }
Пример #5
0
 public static uint hash(float4x2 v)
 {
     return(csum(asuint(v.c0) * uint4(0x5BA2C50Bu, 0x8C455ACBu, 0xCD266C89u, 0xF1852A33u) +
                 asuint(v.c1) * uint4(0x77E35E77u, 0x863E3729u, 0xE191B035u, 0x68586FAFu)) + 0xD4DFF6D3u);
 }
Пример #6
0
 public static uint4 hash_wide(float4x2 v)
 {
     return((asuint(v.c0) * uint4(0xCB634F4Du, 0x9B13B92Du, 0x4ABF0813u, 0x86068063u) +
             asuint(v.c1) * uint4(0xD75513F9u, 0x5AB3E8CDu, 0x676E8407u, 0xB36DE767u)) + 0x6FCA387Du);
 }
Пример #7
0
 public static int4x2 int4x2(float4x2 v)
 {
     return(new int4x2(v));
 }
Пример #8
0
 public static float2x4 transpose(float4x2 v)
 {
     return(float2x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w));
 }
Пример #9
0
 public static uint hash(float4x2 v)
 {
     return(csum(asuint(v.c0) * uint4(0xAAC3C25Du, 0xD21D0945u, 0x88FCAB2Du, 0x614DA60Du) +
                 asuint(v.c1) * uint4(0x5BA2C50Bu, 0x8C455ACBu, 0xCD266C89u, 0xF1852A33u)) + 0x77E35E77u);
 }
Пример #10
0
 public static uint4 hashwide(float4x2 v)
 {
     return((asuint(v.c0) * uint4(0x863E3729u, 0xE191B035u, 0x68586FAFu, 0xD4DFF6D3u) +
             asuint(v.c1) * uint4(0xCB634F4Du, 0x9B13B92Du, 0x4ABF0813u, 0x86068063u)) + 0xD75513F9u);
 }
Пример #11
0
 public static uint4 hashwide(float4x2 v)
 {
     return((asuint(v.c0) * uint4(0xBBCF63E7u, 0xC53F4755u, 0x6985C229u, 0xE133B0B3u) +
             asuint(v.c1) * uint4(0xC3E0A3B9u, 0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu)) + 0x4942CA39u);
 }
Пример #12
0
 public static uint hash(float4x2 v)
 {
     return(csum(asuint(v.c0) * uint4(0x68EEE0F5u, 0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u) +
                 asuint(v.c1) * uint4(0x45A22087u, 0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu)) + 0xB546F2A5u);
 }
Пример #13
0
 public static uint hash(float4x2 v)
 {
     return(csum(asuint(v.c0) * uint4(0x8189A683u, 0xB139D651u, 0xE7579997u, 0xEF7D56C7u) +
                 asuint(v.c1) * uint4(0x66F38F0Bu, 0x624256A3u, 0x5292ADE1u, 0xD2E590E5u)) + 0xF25BE857u);
 }
Пример #14
0
 public fix64p4x2(float4x2 v)
 {
     this.c0 = (fix64p4)v.c0;
     this.c1 = (fix64p4)v.c1;
 }
Пример #15
0
 public static fix64p4x2 fix64p4x2(float4x2 v)
 {
     return(new fix64p4x2(v));
 }