Esempio n. 1
0
 public static bool3x4 transpose(bool4x3 v)
 {
     return(bool3x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w,
                v.c2.x, v.c2.y, v.c2.z, v.c2.w));
 }
Esempio n. 2
0
 public static int4x3 int4x3(bool4x3 v)
 {
     return(new int4x3(v));
 }
Esempio n. 3
0
 public int4x3(bool4x3 v)
 {
     this.c0 = math.select(new int4(0), new int4(1), v.c0);
     this.c1 = math.select(new int4(0), new int4(1), v.c1);
     this.c2 = math.select(new int4(0), new int4(1), v.c2);
 }
Esempio n. 4
0
 public double4x3(bool4x3 v)
 {
     this.c0 = math.select(new double4(0.0), new double4(1.0), v.c0);
     this.c1 = math.select(new double4(0.0), new double4(1.0), v.c1);
     this.c2 = math.select(new double4(0.0), new double4(1.0), v.c2);
 }
Esempio n. 5
0
 public static double4x3 double4x3(bool4x3 v)
 {
     return(new double4x3(v));
 }
Esempio n. 6
0
 public uint4x3(bool4x3 v)
 {
     this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0);
     this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1);
     this.c2 = math.select(new uint4(0u), new uint4(1u), v.c2);
 }
Esempio n. 7
0
 public static uint4x3 uint4x3(bool4x3 v)
 {
     return(new uint4x3(v));
 }
Esempio n. 8
0
 public fix64p4x3(bool4x3 v)
 {
     this.c0 = math.select(new fix64p4(fix64p.zero), new fix64p4(fix64p.One), v.c0);
     this.c1 = math.select(new fix64p4(fix64p.zero), new fix64p4(fix64p.One), v.c1);
     this.c2 = math.select(new fix64p4(fix64p.zero), new fix64p4(fix64p.One), v.c2);
 }
Esempio n. 9
0
 public static uint4 hashwide(bool4x3 v)
 {
     return(select(uint4(0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u, 0xA477DF57u), uint4(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u, 0x5B419C01u), v.c0) +
            select(uint4(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u, 0xC2FAFCB9u), uint4(0x616E9CA1u, 0xC5C5394Bu, 0xCAE78587u, 0x7A1541C9u), v.c1) +
            select(uint4(0xF83BD927u, 0x6A243BCBu, 0x509B84C9u, 0x91D13847u), uint4(0x52F7230Fu, 0xCF286E83u, 0xE121E6ADu, 0xC9CA1249u), v.c2));
 }
 public static uint hash(bool4x3 v)
 {
     return(csum(select(uint4(0xFD80290Bu, 0x8B65ADB7u, 0xDFF4F563u, 0x7069770Du), uint4(0xD1224537u, 0xE99ED6F3u, 0x48125549u, 0xEEE2123Bu), v.c0) +
                 select(uint4(0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu, 0xFAB9913Fu), uint4(0xB4501269u, 0xE04B89FDu, 0xDB3DE101u, 0x7B6D1B4Bu), v.c1) +
                 select(uint4(0x58399E77u, 0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu), uint4(0x9D1B1D9Bu, 0xF842F5C1u, 0xA47EC335u, 0xA477DF57u), v.c2)));
 }
Esempio n. 11
0
 public static uint hash(bool4x3 v)
 {
     return(csum(select(uint4(0xEADF0775u, 0x747A9D7Bu, 0x4111F799u, 0xB5F05AF1u), uint4(0xFD80290Bu, 0x8B65ADB7u, 0xDFF4F563u, 0x7069770Du), v.c0) +
                 select(uint4(0xD1224537u, 0xE99ED6F3u, 0x48125549u, 0xEEE2123Bu), uint4(0xE3AD9FE5u, 0xCE1CF8BFu, 0x7BE39F3Bu, 0xFAB9913Fu), v.c1) +
                 select(uint4(0xB4501269u, 0xE04B89FDu, 0xDB3DE101u, 0x7B6D1B4Bu), uint4(0x58399E77u, 0x5EAC29C9u, 0xFC6014F9u, 0x6BF6693Fu), v.c2)));
 }
Esempio n. 12
0
 public static uint4 hash_wide(bool4x3 v)
 {
     return(select(uint4(0xC4B1493Fu, 0xBA0966D3u, 0xAFBEE253u, 0x5B419C01u), uint4(0x515D90F5u, 0xEC9F68F3u, 0xF9EA92D5u, 0xC2FAFCB9u), v.c0) +
            select(uint4(0x616E9CA1u, 0xC5C5394Bu, 0xCAE78587u, 0x7A1541C9u), uint4(0xF83BD927u, 0x6A243BCBu, 0x509B84C9u, 0x91D13847u), v.c1) +
            select(uint4(0x52F7230Fu, 0xCF286E83u, 0xE121E6ADu, 0xC9CA1249u), uint4(0x69B60C81u, 0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u), v.c2));
 }
Esempio n. 13
0
 public static uint4 hashwide(bool4x3 v)
 {
     return(select(uint4(0x8C4CA03Fu, 0xB8D969EDu, 0xAC5DB57Bu, 0xA91A02EDu), uint4(0xB3C49313u, 0xF43A9ABBu, 0x84E7E01Bu, 0x8E055BE5u), v.c0) +
            select(uint4(0x6E624EB7u, 0x7383ED49u, 0xDD49C23Bu, 0xEBD0D005u), uint4(0x91475DF7u, 0x55E84827u, 0x90A285BBu, 0x5D19E1D5u), v.c1) +
            select(uint4(0xFAAF07DDu, 0x625C45BDu, 0xC9F27FCBu, 0x6D2523B1u), uint4(0x6E2BF6A9u, 0xCC74B3B7u, 0x83B58237u, 0x833E3E29u), v.c2));
 }
Esempio n. 14
0
 public static uint hash(bool4x3 v)
 {
     return(csum(select(uint4(0x9DF50593u, 0xF18EEB85u, 0x9E19BFC3u, 0x8196B06Fu), uint4(0xD24EFA19u, 0x7D8048BBu, 0x713BD06Fu, 0x753AD6ADu), v.c0) +
                 select(uint4(0xD19764C7u, 0xB5D0BF63u, 0xF9102C5Fu, 0x9881FB9Fu), uint4(0x56A1530Du, 0x804B722Du, 0x738E50E5u, 0x4FC93C25u), v.c1) +
                 select(uint4(0xCD0445A5u, 0xD2B90D9Bu, 0xD35C9B2Du, 0xA10D9E27u), uint4(0x568DAAA9u, 0x7530254Fu, 0x9F090439u, 0x5E9F85C9u), v.c2)));
 }
Esempio n. 15
0
 public static float4x3 float4x3(bool4x3 v)
 {
     return(new float4x3(v));
 }
Esempio n. 16
0
 public static uint hash(bool4x3 v)
 {
     return(csum(select(uint4(0x68EEE0F5u, 0xBC3B0A59u, 0x816EFB5Du, 0xA24E82B7u), uint4(0x45A22087u, 0xFC104C3Bu, 0x5FFF6B19u, 0x5E6CBF3Bu), v.c0) +
                 select(uint4(0xB546F2A5u, 0xBBCF63E7u, 0xC53F4755u, 0x6985C229u), uint4(0xE133B0B3u, 0xC3E0A3B9u, 0xFE31134Fu, 0x712A34D7u), v.c1) +
                 select(uint4(0x9D77A59Bu, 0x4942CA39u, 0xB40EC62Du, 0x565ED63Fu), uint4(0x93C30C2Bu, 0xDCAF0351u, 0x6E050B01u, 0x750FDBF5u), v.c2)));
 }
Esempio n. 17
0
 public float4x3(bool4x3 v)
 {
     this.c0 = math.select(new float4(0.0f), new float4(1.0f), v.c0);
     this.c1 = math.select(new float4(0.0f), new float4(1.0f), v.c1);
     this.c2 = math.select(new float4(0.0f), new float4(1.0f), v.c2);
 }
Esempio n. 18
0
 public static fix64p4x3 fix64p4x3(bool4x3 v)
 {
     return(new fix64p4x3(v));
 }