Exemple #1
0
 public static Int4   Abs(this Int4 x) => Exec(Math.Abs, x);
Exemple #2
0
 private static Int4 Exec(Func <int, int, int, int> f, Int4 x, Int4 y, Int4 z) => new Int4(f(x.x, y.x, z.x), f(x.y, y.y, z.y), f(x.z, y.z, z.z), f(x.w, y.w, z.w));
Exemple #3
0
 private static Int4 Exec(Func <int, int> f, Int4 x) => new Int4(f(x.x), f(x.y), f(x.z), f(x.w));
Exemple #4
0
 public static Int4 Sign(this Int4 x) => Exec(SignCore, x);
Exemple #5
0
 public static Int4 Max(Int4 x, Int4 y) => Exec(Math.Max, x, y);
Exemple #6
0
 public static Int4 Min(Int4 x, Int4 y) => Exec(Math.Min, x, y);