示例#1
0
 public static BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
 {
     return(new BoundingBox(
                Vector3.Min(original.Min, additional.Min), Vector3.Max(original.Max, additional.Max)));
 }
示例#2
0
 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);
 }