Ejemplo n.º 1
0
 public double2x4(float2x4 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
     this.c3 = v.c3;
 }
Ejemplo n.º 2
0
 public int2x4(float2x4 v)
 {
     this.c0 = (int2)v.c0;
     this.c1 = (int2)v.c1;
     this.c2 = (int2)v.c2;
     this.c3 = (int2)v.c3;
 }
Ejemplo n.º 3
0
 public static uint2 hashwide(float2x4 v)
 {
     return((asuint(v.c0) * uint2(0xA91A02EDu, 0xB3C49313u) +
             asuint(v.c1) * uint2(0xF43A9ABBu, 0x84E7E01Bu) +
             asuint(v.c2) * uint2(0x8E055BE5u, 0x6E624EB7u) +
             asuint(v.c3) * uint2(0x7383ED49u, 0xDD49C23Bu)) + 0xEBD0D005u);
 }
Ejemplo n.º 4
0
 public static uint hash(float2x4 v)
 {
     return(csum(asuint(v.c0) * uint2(0xD35C9B2Du, 0xA10D9E27u) +
                 asuint(v.c1) * uint2(0x568DAAA9u, 0x7530254Fu) +
                 asuint(v.c2) * uint2(0x9F090439u, 0x5E9F85C9u) +
                 asuint(v.c3) * uint2(0x8C4CA03Fu, 0xB8D969EDu)) + 0xAC5DB57Bu);
 }
Ejemplo n.º 5
0
 public static float4x2 transpose(float2x4 v)
 {
     return(float4x2(
                v.c0.x, v.c0.y,
                v.c1.x, v.c1.y,
                v.c2.x, v.c2.y,
                v.c3.x, v.c3.y));
 }
Ejemplo n.º 6
0
 public static int2x4 int2x4(float2x4 v)
 {
     return(new int2x4(v));
 }
Ejemplo n.º 7
0
 public static uint2x4 uint2x4(float2x4 v)
 {
     return(new uint2x4(v));
 }
Ejemplo n.º 8
0
 public static double2x4 double2x4(float2x4 v)
 {
     return(new double2x4(v));
 }