Exemple #1
0
 public void AbsTest()
 {
     for (var x = -10; x < 10; x++)
     {
         for (var y = -10; y < 10; y++)
         {
             for (var z = -10; z < 10; z++)
             {
                 for (var w = -10; w < 10; w++)
                 {
                     var v = new Vector4(x, y, z, w);
                     v = v.Abs();
                     Assert.LessOrEqual(0, v.X);
                     Assert.LessOrEqual(0, v.Y);
                     Assert.LessOrEqual(0, v.Z);
                 }
             }
         }
     }
 }
Exemple #2
0
 public static Vector4 Abs(Vector4 value) => Vector4.Abs(value);