Esempio n. 1
0
 public static BoundingBoxInt16 Merge(BoundingBoxInt16 box1, BoundingBoxInt16 box2)
 {
     return(new BoundingBoxInt16(
                Vector3Int16.Minimize(box1.Minimum, box2.Minimum),
                Vector3Int16.Maximize(box1.Maximum, box2.Maximum)
                ));
 }
Esempio n. 2
0
 public static BoundingBoxInt16 Merge(BoundingBoxInt16 box1, BoundingBoxInt16 box2)
 {
     if (box1 == Invalid)
     {
         return(box2);
     }
     if (box2 == Invalid)
     {
         return(box1);
     }
     return(new BoundingBoxInt16(
                Vector3Int16.Minimize(box1.Minimum, box2.Minimum),
                Vector3Int16.Maximize(box1.Maximum, box2.Maximum)
                ));
 }