Example #1
0
 public static uint hash(float3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xE121E6ADu, 0xC9CA1249u, 0x69B60C81u) +
                 asuint(v.c1) * uint3(0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u)) + 0xEF63C699u);
 }
Example #2
0
 public static uint3 hashwide(float3x2 v)
 {
     return((asuint(v.c0) * uint3(0x9001903Fu, 0xA895B9CDu, 0x9D23B201u) +
             asuint(v.c1) * uint3(0x4B01D3E1u, 0x7461CA0Du, 0x79725379u)) + 0xD6258E5Bu);
 }
 public uint3x2(float3x2 v)
 {
     this.c0 = (uint3)v.c0;
     this.c1 = (uint3)v.c1;
 }
Example #4
0
 public static float2x3 transpose(float3x2 v)
 {
     return(float2x3(
                v.c0.x, v.c0.y, v.c0.z,
                v.c1.x, v.c1.y, v.c1.z));
 }
Example #5
0
 public static int3x2 int3x2(float3x2 v)
 {
     return(new int3x2(v));
 }
 public static uint3x2 uint3x2(float3x2 v)
 {
     return(new uint3x2(v));
 }
Example #7
0
 public double3x2(float3x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Example #8
0
 public static double3x2 double3x2(float3x2 v)
 {
     return(new double3x2(v));
 }
 public static uint hash(float3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xE133B0B3u, 0xC3E0A3B9u, 0xFE31134Fu) +
                 asuint(v.c1) * uint3(0x712A34D7u, 0x9D77A59Bu, 0x4942CA39u)) + 0xB40EC62Du);
 }
 public static uint3 hashwide(float3x2 v)
 {
     return((asuint(v.c0) * uint3(0x565ED63Fu, 0x93C30C2Bu, 0xDCAF0351u) +
             asuint(v.c1) * uint3(0x6E050B01u, 0x750FDBF5u, 0x7F3DD499u)) + 0x52EAAEBBu);
 }
 public static uint3 hashwide(float3x2 v)
 {
     return((asuint(v.c0) * uint3(0xF62213C5u, 0x9CDAA959u, 0xAA269ABFu) +
             asuint(v.c1) * uint3(0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u)) + 0xB139D651u);
 }
 public static uint hash(float3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xEE390C97u, 0x9C8A2F05u, 0x4DDC6509u) +
                 asuint(v.c1) * uint3(0x7CF083CBu, 0x5C4D6CEDu, 0xF9137117u)) + 0xE857DCE1u);
 }
Example #13
0
 public fix64p3x2(float3x2 v)
 {
     this.c0 = (fix64p3)v.c0;
     this.c1 = (fix64p3)v.c1;
 }
Example #14
0
 public static fix64p3x2 fix64p3x2(float3x2 v)
 {
     return(new fix64p3x2(v));
 }
 public static uint hash(float3x2 v)
 {
     return(csum(asuint(v.c0) * uint3(0xC267163Fu, 0x67BC9149u, 0xAD7C5EC1u) +
                 asuint(v.c1) * uint3(0x822A7D6Du, 0xB492BF15u, 0xD37220E3u)) + 0x7AA2C2BDu);
 }