Vector3I v = new Vector3I(-2, 3, -4); Vector3I absV = Vector3I.Abs(v);
int[] array = new int[] { -1, 2, -3 }; Vector3I absV = Vector3I.Abs(new Vector3I(array));In this example, we create an int array with negative values. We then create a new Vector3I from the array and pass it to Vector3I.Abs. The resulting absV should have all positive values. The Vector3I class and its Abs function are part of the Microsoft.Xna.Framework package library.