예제 #1
0
 public static double2 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y)
 {
     return(double2(
                select_shuffle_component(a, b, x),
                select_shuffle_component(a, b, y)));
 }
예제 #2
0
 public double2x3(uint2x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
예제 #3
0
 public static double2 double2(double2 xy)
 {
     return(new double2(xy));
 }
예제 #4
0
 public double2x3(double v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
예제 #5
0
 public double2x3(bool2x3 v)
 {
     this.c0 = math.select(new double2(0.0), new double2(1.0), v.c0);
     this.c1 = math.select(new double2(0.0), new double2(1.0), v.c1);
     this.c2 = math.select(new double2(0.0), new double2(1.0), v.c2);
 }
예제 #6
0
 public double2x2(int2x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
예제 #7
0
 public double2x3(float2x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
예제 #8
0
 public static double2 sqr(double2 x)
 {
     return(new double2(sqr(x.x), sqr(x.y)));
 }
예제 #9
0
 public double2 NextDouble2(double2 max)
 {
     return(NextDouble2() * max);
 }
예제 #10
0
 public static uint2 uint2(double2 v)
 {
     return(new uint2(v));
 }
예제 #11
0
 public static double2x4 double2x4(double2 c0, double2 c1, double2 c2, double2 c3)
 {
     return(new double2x4(c0, c1, c2, c3));
 }
예제 #12
0
 public uint2(double2 v)
 {
     this.x = (uint)v.x;
     this.y = (uint)v.y;
 }
예제 #13
0
 public static float2 float2(double2 v)
 {
     return(new float2(v));
 }
예제 #14
0
 public float2(double2 v)
 {
     this.x = (float)v.x;
     this.y = (float)v.y;
 }
예제 #15
0
 public double2x2(bool v)
 {
     this.c0 = math.select(new double2(0.0), new double2(1.0), v);
     this.c1 = math.select(new double2(0.0), new double2(1.0), v);
 }
예제 #16
0
 public double2 NextDouble2(double2 min, double2 max)
 {
     return(NextDouble2() * (max - min) + min);
 }
예제 #17
0
 public double2x2(int v)
 {
     this.c0 = v;
     this.c1 = v;
 }
예제 #18
0
 public double2x2(float v)
 {
     this.c0 = v;
     this.c1 = v;
 }
예제 #19
0
 public double2x3(float v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
예제 #20
0
 public double2x2(float2x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
예제 #21
0
 public double2x3(double2 c0, double2 c1, double2 c2)
 {
     this.c0 = c0;
     this.c1 = c1;
     this.c2 = c2;
 }
예제 #22
0
 public double2x2(double2 c0, double2 c1)
 {
     this.c0 = c0;
     this.c1 = c1;
 }
예제 #23
0
 public static double2x3 double2x3(double2 c0, double2 c1, double2 c2)
 {
     return(new double2x3(c0, c1, c2));
 }
예제 #24
0
 public double2x2(double m00, double m01,
                  double m10, double m11)
 {
     this.c0 = new double2(m00, m10);
     this.c1 = new double2(m01, m11);
 }
예제 #25
0
 public double2x3(uint v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
예제 #26
0
 public double2x2(double v)
 {
     this.c0 = v;
     this.c1 = v;
 }
예제 #27
0
 public DebuggerProxy(double2 v)
 {
     x = v.x;
     y = v.y;
 }
예제 #28
0
 public static double2x2 double2x2(double2 c0, double2 c1)
 {
     return(new double2x2(c0, c1));
 }
예제 #29
0
 public static uint hash(double2 v)
 {
     return(csum(fold_to_uint(v) * uint2(0xAD55999Du, 0xDCDD5341u)) + 0x94DDD769u);
 }
예제 #30
0
 public static double shuffle(double2 a, double2 b, ShuffleComponent x)
 {
     return(select_shuffle_component(a, b, x));
 }