Beispiel #1
0
 public static uint3x3 transpose(uint3x3 v)
 {
     return(uint3x3(
                v.c0.x, v.c0.y, v.c0.z,
                v.c1.x, v.c1.y, v.c1.z,
                v.c2.x, v.c2.y, v.c2.z));
 }
Beispiel #2
0
 public static uint3 hashwide(uint3x3 v)
 {
     return((v.c0 * uint3(0xA2D00EDFu, 0xA8977779u, 0x9F1C739Bu) +
             v.c1 * uint3(0x4B1BD187u, 0x9DF50593u, 0xF18EEB85u) +
             v.c2 * uint3(0x9E19BFC3u, 0x8196B06Fu, 0xD24EFA19u)) + 0x7D8048BBu);
 }
Beispiel #3
0
 public static uint hash(uint3x3 v)
 {
     return(csum(v.c0 * uint3(0xAC60D0C3u, 0x9263662Fu, 0xE69626FFu) +
                 v.c1 * uint3(0xBD010EEBu, 0x9CEDE1D1u, 0x43BE0B51u) +
                 v.c2 * uint3(0xAF836EE1u, 0xB130C137u, 0x54834775u)) + 0x7C022221u);
 }
Beispiel #4
0
 public static double3x3 double3x3(uint3x3 v)
 {
     return(new double3x3(v));
 }
Beispiel #5
0
 public double3x3(uint3x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
Beispiel #6
0
 public static float3x3 float3x3(uint3x3 v)
 {
     return(new float3x3(v));
 }
Beispiel #7
0
 public float3x3(uint3x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
Beispiel #8
0
 public int3x3(uint3x3 v)
 {
     this.c0 = (int3)v.c0;
     this.c1 = (int3)v.c1;
     this.c2 = (int3)v.c2;
 }
Beispiel #9
0
 public static int3x3 int3x3(uint3x3 v)
 {
     return(new int3x3(v));
 }