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