public static BoundingBox CreateMerged(BoundingBox original, BoundingBox additional) { return(new BoundingBox( Vector3.Min(original.Min, additional.Min), Vector3.Max(original.Max, additional.Max))); }
public static void CreateMerged(ref BoundingBox original, ref BoundingBox additional, out BoundingBox result) { result.Min = Vector3.Min(original.Min, additional.Min); result.Max = Vector3.Max(original.Max, additional.Max); }