Ejemplo n.º 1
0
 public void DrawRoundedRectangle(Float4 fillColor, Float4 borderColor, float borderThickness, Float2 topLeft, Float2 bottomRight, float radiusX, float radiusY) => throw new NotSupportedException("Vector operations are not supported by this implementation.");
Ejemplo n.º 2
0
 public static Float4 Asin(this Float4 x) => Exec(Math.Asin, x);
Ejemplo n.º 3
0
 public static Float4 Atan2(Float4 y, Float4 x) => Exec(Math.Atan2, y, x);
Ejemplo n.º 4
0
 public static Float4 Smoothstep(Float4 edge0, Float4 edge1, float x) => new Float4(
     Smoothstep(edge0.x, edge1.x, x),
     Smoothstep(edge0.y, edge1.y, x),
     Smoothstep(edge0.z, edge1.z, x),
     Smoothstep(edge0.w, edge1.w, x));
Ejemplo n.º 5
0
 private static Float4 Exec(Func <double, double, double, double> f, Float4 x, Float4 y, Float4 z) => new Float4((float)f(x.x, y.x, z.x), (float)f(x.y, y.y, z.y), (float)f(x.z, y.z, z.z), (float)f(x.w, y.w, z.w));
Ejemplo n.º 6
0
 public static Float4 Sqrt(this Float4 x) => Exec(Math.Sqrt, x);
Ejemplo n.º 7
0
 public static float Dot(this Float4 x, Float4 other) => x.x * other.x + x.y * other.y + x.z * other.z + x.w * other.w;
Ejemplo n.º 8
0
 public static Float4 Trunc(this Float4 x) => new Float4((int)x.x, (int)x.y, (int)x.z, (int)x.w);
Ejemplo n.º 9
0
 public static Float4 Cosh(this Float4 x) => Exec(Math.Cosh, x);
Ejemplo n.º 10
0
 public static Float4 Clamp(this Float4 x, Float4 min, Float4 max) => Exec(ClampCore, x, min, max);
Ejemplo n.º 11
0
 public static Float4 Round(this Float4 x, Float4 digits) => Exec(RoundCore, x, digits);
Ejemplo n.º 12
0
 public static Float4 Floor(this Float4 x) => Exec(Math.Floor, x);
Ejemplo n.º 13
0
 public static Float4 Ceil(this Float4 x) => Exec(Math.Ceiling, x);
Ejemplo n.º 14
0
 public void DrawEllipse(Float4 fillColor, Float4 borderColor, float borderThickness, Float2 center, float radiusX, float radiusY) => throw new NotSupportedException("Vector operations are not supported by this implementation.");
Ejemplo n.º 15
0
 public static Float4 Pow(this Float4 x, Float4 power) => Exec(Math.Pow, x, power);
Ejemplo n.º 16
0
 public static Float4 Sinh(this Float4 x) => Exec(Math.Sinh, x);
Ejemplo n.º 17
0
 public static Float4 Sign(this Float4 x) => Exec(SignCore, x);
Ejemplo n.º 18
0
 public static Float4 Tanh(this Float4 x) => Exec(Math.Tanh, x);
Ejemplo n.º 19
0
 public static Float4 Rsqrt(this Float4 x) => new Float4(Rsqrt(x.x), Rsqrt(x.y), Rsqrt(x.z), Rsqrt(x.w));
Ejemplo n.º 20
0
 public static Float4 Exp(this Float4 x) => Exec(Math.Exp, x);
Ejemplo n.º 21
0
 public static Float4 Lerp(Float4 x, Float4 y, float s) => new Float4(
     Lerp(x.x, y.x, s),
     Lerp(x.y, y.y, s),
     Lerp(x.z, y.z, s),
     Lerp(x.w, y.w, s));
Ejemplo n.º 22
0
 public static Float4 Log2(this Float4 x) => Exec(Log2Core, x);
Ejemplo n.º 23
0
 private static Float4 Exec(Func <double, double> f, Float4 x) => new Float4((float)f(x.x), (float)f(x.y), (float)f(x.z), (float)f(x.w));
Ejemplo n.º 24
0
 public static Float4 Log10(this Float4 x) => Exec(Math.Log10, x);
Ejemplo n.º 25
0
 public static Float4 Acos(this Float4 x) => Exec(Math.Acos, x);
Ejemplo n.º 26
0
 public static Float4 Min(Float4 x, Float4 y) => Exec(Math.Min, x, y);
Ejemplo n.º 27
0
 public static Float4 Atan(this Float4 x) => Exec(Math.Atan, x);
Ejemplo n.º 28
0
 public static Float4 Max(Float4 x, Float4 y) => Exec(Math.Max, x, y);
Ejemplo n.º 29
0
 public static Float4 Abs(this Float4 x) => Exec(Math.Abs, x);
Ejemplo n.º 30
0
 public void DrawLine(Float4 color, float thickness, Float2 a, Float2 b) => throw new NotSupportedException("Vector operations are not supported by this implementation.");