public double4x3(float v) { this.c0 = v; this.c1 = v; this.c2 = v; }
public double4x3(double4 c0, double4 c1, double4 c2) { this.c0 = c0; this.c1 = c1; this.c2 = c2; }
public static double4 angledelta(double4 a, double4 b) { return(repeat((b - a), TAU_DBL)); }
public double4x3(uint v) { this.c0 = v; this.c1 = v; this.c2 = v; }
public double4x2(uint v) { this.c0 = v; this.c1 = v; }
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); }
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); }
public void Parse_ToString_InvariantCulture() { double4 d = double4.One * 1.5d; Assert.Equal(d, double4.Parse(d.ToString(CultureInfo.InvariantCulture), CultureInfo.InvariantCulture)); }
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"))); }
public void Parse_ToString_NoCulture() { double4 d = double4.One * 1.5d; Assert.Equal(d, double4.Parse(d.ToString())); }
public void One_IsOne() { var expected = new double4(1, 1, 1, 1); Assert.Equal(expected, double4.One); }
public void Divide_Operator(double4 vec, double scale, double4 expected) { var actual = vec / scale; Assert.Equal(expected, actual); }
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)); }
public static double4x2 double4x2(double4 c0, double4 c1) { return(new double4x2(c0, c1)); }
public void vstore_half4(double4 data, int offset, half[] p) { }
public double4x2(int4x2 v) { this.c0 = v.c0; this.c1 = v.c1; }
public void vstorea_half4_rtn(double4 data, int offset, half[] p) { }
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))); }
public static double4 angledeltasgndeg(double4 a, double4 b) { double4 deltas = angledeltadeg(a, b); return(math.select(deltas, deltas - 360d, deltas > 180d)); }
public double4x2(float v) { this.c0 = v; this.c1 = v; }
public static double4 lerp(double4 v0, double4 v1, double4 v2, float3 w) { return(v0 * w.x + v1 * w.y + v2 * w.z); }
public double4x2(float4x2 v) { this.c0 = v.c0; this.c1 = v.c1; }
public double4x3(uint4x3 v) { this.c0 = v.c0; this.c1 = v.c1; this.c2 = v.c2; }
public double4x2(double4 c0, double4 c1) { this.c0 = c0; this.c1 = c1; }
public double4x3(float4x3 v) { this.c0 = v.c0; this.c1 = v.c1; this.c2 = v.c2; }
public double4x2(double v) { this.c0 = v; this.c1 = v; }
public static extern double4 mono_return_double4 (double4 s, int addend);
public void Zero_IsZero() { var expected = new double4(0, 0, 0, 0); Assert.Equal(expected, double4.Zero); }