/// <summary> /// Constructs a <see cref="SharpDX.BoundingBox"/> that is as large as the total combined area of the two specified boxes. /// </summary> /// <param name="value1">The first box to merge.</param> /// <param name="value2">The second box to merge.</param> /// <param name="result">When the method completes, contains the newly constructed bounding box.</param> public static void Merge(ref BoundingBox value1, ref BoundingBox value2, out BoundingBox result) { Vector3.Min(ref value1.Minimum, ref value2.Minimum, out result.Minimum); Vector3.Max(ref value1.Maximum, ref value2.Maximum, out result.Maximum); }