Example #1
0
 public double4x3(float v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
Example #2
0
 public double4x3(double4 c0, double4 c1, double4 c2)
 {
     this.c0 = c0;
     this.c1 = c1;
     this.c2 = c2;
 }
Example #3
0
 public static double4 angledelta(double4 a, double4 b)
 {
     return(repeat((b - a), TAU_DBL));
 }
Example #4
0
 public double4x3(uint v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
Example #5
0
 public double4x2(uint v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Example #6
0
 public static double4 angledeltadeg(double4 a, double4 b)
 {
     return(repeat((b - a), 360d));
 }
 private static double ConvertToDouble(double4 result)
 {
     return(result.x + result.y * 10.0 + result.z * 100.0 + result.w * 1000.0);
 }
Example #8
0
 public double4x2(bool4x2 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);
 }
Example #9
0
        public void Parse_ToString_InvariantCulture()
        {
            double4 d = double4.One * 1.5d;

            Assert.Equal(d, double4.Parse(d.ToString(CultureInfo.InvariantCulture), CultureInfo.InvariantCulture));
        }
Example #10
0
        public void Parse_ToString_CultureDE()
        {
            double4 d = double4.One * 1.5d;

            Assert.Equal(d, double4.Parse(d.ToString(new CultureInfo("de-DE")), new CultureInfo("de-DE")));
        }
Example #11
0
        public void Parse_ToString_NoCulture()
        {
            double4 d = double4.One * 1.5d;

            Assert.Equal(d, double4.Parse(d.ToString()));
        }
Example #12
0
        public void One_IsOne()
        {
            var expected = new double4(1, 1, 1, 1);

            Assert.Equal(expected, double4.One);
        }
Example #13
0
        public void Divide_Operator(double4 vec, double scale, double4 expected)
        {
            var actual = vec / scale;

            Assert.Equal(expected, actual);
        }
Example #14
0
        public void Multiply_ScalarVector_Operator(double4 vec, double scale, double4 expected)
        {
            var actual = scale * vec;

            Assert.Equal(expected, actual);
        }
        public static double Double4Half4(ref double4 a)
        {
            var h = new half4(a);

            return(Vectors.ConvertToDouble((double4) new double4(h).x));
        }
Example #16
0
 public static double4x2 double4x2(double4 c0, double4 c1)
 {
     return(new double4x2(c0, c1));
 }
Example #17
0
 public void vstore_half4(double4 data, int offset, half[] p)
 {
 }
Example #18
0
 public double4x2(int4x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Example #19
0
 public void vstorea_half4_rtn(double4 data, int offset, half[] p)
 {
 }
Example #20
0
        public static double4 angledeltasgn(double4 a, double4 b)
        {
            double4 deltas = angledelta(a, b);

            return(math.select(deltas, deltas - TAU_DBL, deltas > math.PI_DBL));
        }
 public static double sad(double4 a, double4 b)
 {
     return(math.csum(math.abs(a - b)));
 }
Example #22
0
        public static double4 angledeltasgndeg(double4 a, double4 b)
        {
            double4 deltas = angledeltadeg(a, b);

            return(math.select(deltas, deltas - 360d, deltas > 180d));
        }
Example #23
0
 public double4x2(float v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Example #24
0
 public static double4 lerp(double4 v0, double4 v1, double4 v2, float3 w)
 {
     return(v0 * w.x + v1 * w.y + v2 * w.z);
 }
Example #25
0
 public double4x2(float4x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Example #26
0
 public double4x3(uint4x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
Example #27
0
 public double4x2(double4 c0, double4 c1)
 {
     this.c0 = c0;
     this.c1 = c1;
 }
Example #28
0
 public double4x3(float4x3 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
     this.c2 = v.c2;
 }
Example #29
0
 public double4x2(double v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Example #30
0
	public static extern double4 mono_return_double4 (double4 s, int addend);
Example #31
0
        public void Zero_IsZero()
        {
            var expected = new double4(0, 0, 0, 0);

            Assert.Equal(expected, double4.Zero);
        }