示例#1
0
文件: int4x3.cs 项目: CyangYu/Raster
 public static int3x4 transpose(int4x3 v)
 {
     return(int3x4(
                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));
 }
示例#2
0
文件: int4x3.cs 项目: CyangYu/Raster
 public static uint4 hashwide(int4x3 v)
 {
     return((asuint(v.c0) * uint4(0x9C8A2F05u, 0x4DDC6509u, 0x7CF083CBu, 0x5C4D6CEDu) +
             asuint(v.c1) * uint4(0xF9137117u, 0xE857DCE1u, 0xF62213C5u, 0x9CDAA959u) +
             asuint(v.c2) * uint4(0xAA269ABFu, 0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u)) + 0xB139D651u);
 }
示例#3
0
文件: int4x3.cs 项目: CyangYu/Raster
 public static uint hash(int4x3 v)
 {
     return(csum(asuint(v.c0) * uint4(0x69B60C81u, 0xE0EB6C25u, 0xF648BEABu, 0x6BDB2B07u) +
                 asuint(v.c1) * uint4(0xEF63C699u, 0x9001903Fu, 0xA895B9CDu, 0x9D23B201u) +
                 asuint(v.c2) * uint4(0x4B01D3E1u, 0x7461CA0Du, 0x79725379u, 0xD6258E5Bu)) + 0xEE390C97u);
 }
示例#4
0
 public double4x3(int4x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
示例#5
0
 public static double4x3 double4x3(int4x3 v)
 {
     return(new double4x3(v));
 }
示例#6
0
 public float4x3(int4x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
示例#7
0
 public static float4x3 float4x3(int4x3 v)
 {
     return(new float4x3(v));
 }
示例#8
0
 public uint4x3(int4x3 v)
 {
     this.c0 = (uint4)v.c0;
     this.c1 = (uint4)v.c1;
     this.c2 = (uint4)v.c2;
 }
示例#9
0
 public static uint4x3 uint4x3(int4x3 v)
 {
     return(new uint4x3(v));
 }