Exemple #1
0
 public static uint3x2 uint3x2(int3x2 v)
 {
     return(new uint3x2(v));
 }
Exemple #2
0
 public uint3x2(int3x2 v)
 {
     this.c0 = (uint3)v.c0;
     this.c1 = (uint3)v.c1;
 }
Exemple #3
0
 public static float3x2 float3x2(int3x2 v)
 {
     return(new float3x2(v));
 }
Exemple #4
0
 public float3x2(int3x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Exemple #5
0
 public double3x2(int3x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Exemple #6
0
 public static double3x2 double3x2(int3x2 v)
 {
     return(new double3x2(v));
 }
Exemple #7
0
 public static uint3 hashwide(int3x2 v)
 {
     return((asuint(v.c0) * uint3(0xF842F5C1u, 0xA47EC335u, 0xA477DF57u) +
             asuint(v.c1) * uint3(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u)) + 0x5B419C01u);
 }
Exemple #8
0
 public static uint hash(int3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xDB3DE101u, 0x7B6D1B4Bu, 0x58399E77u) +
                 asuint(v.c1) * uint3(0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu)) + 0x9D1B1D9Bu);
 }
Exemple #9
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));
 }