Beispiel #1
0
 public float3x2(int3x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
 public uint3x2(int3x2 v)
 {
     this.c0 = (uint3)v.c0;
     this.c1 = (uint3)v.c1;
 }
Beispiel #3
0
 public static float3x2 float3x2(int3x2 v)
 {
     return(new float3x2(v));
 }
Beispiel #4
0
 public static uint3 hashwide(int3x2 v)
 {
     return((asuint(v.c0) * uint3(0xF842F5C1u, 0xA47EC335u, 0xA477DF57u) +
             asuint(v.c1) * uint3(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u)) + 0x5B419C01u);
 }
 public static uint3x2 uint3x2(int3x2 v)
 {
     return(new uint3x2(v));
 }
Beispiel #6
0
 public static int2x3 transpose(int3x2 v)
 {
     return(int2x3(
                v.c0.x, v.c0.y, v.c0.z,
                v.c1.x, v.c1.y, v.c1.z));
 }
Beispiel #7
0
 public static uint hash(int3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xDB3DE101u, 0x7B6D1B4Bu, 0x58399E77u) +
                 asuint(v.c1) * uint3(0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu)) + 0x9D1B1D9Bu);
 }
Beispiel #8
0
 public static double3x2 double3x2(int3x2 v)
 {
     return(new double3x2(v));
 }
Beispiel #9
0
 public double3x2(int3x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
 public static uint hash(int3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xE7579997u, 0xEF7D56C7u, 0x66F38F0Bu) +
                 asuint(v.c1) * uint3(0x624256A3u, 0x5292ADE1u, 0xD2E590E5u)) + 0xF25BE857u);
 }
 public static uint3 hashwide(int3x2 v)
 {
     return((asuint(v.c0) * uint3(0x9BC17CE7u, 0xC8B86851u, 0x64095221u) +
             asuint(v.c1) * uint3(0xADF428FFu, 0xA3977109u, 0x745ED837u)) + 0x9CDC88F5u);
 }
Beispiel #12
0
 public static uint3 hash_wide(int3x2 v)
 {
     return((asuint(v.c0) * uint3(0x7A1541C9u, 0xF83BD927u, 0x6A243BCBu) +
             asuint(v.c1) * uint3(0x509B84C9u, 0x91D13847u, 0x52F7230Fu)) + 0xCF286E83u);
 }
Beispiel #13
0
 public static uint hash(int3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u) +
                 asuint(v.c1) * uint3(0xC2FAFCB9u, 0x616E9CA1u, 0xC5C5394Bu)) + 0xCAE78587u);
 }
Beispiel #14
0
 public fix64p3x2(int3x2 v)
 {
     this.c0 = (fix64p3)v.c0;
     this.c1 = (fix64p3)v.c1;
 }
Beispiel #15
0
 public static fix64p3x2 fix64p3x2(int3x2 v)
 {
     return(new fix64p3x2(v));
 }
Beispiel #16
0
 public static uint hash(int3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu) +
                 asuint(v.c1) * uint3(0x4942CA39u, 0xB40EC62Du, 0x565ED63Fu)) + 0x93C30C2Bu);
 }