예제 #1
0
 public BoundingBoxSet(BoundingBoxSet bbset) : base(bbset.getModel())
 {
     this.boxes = new List <BoundingBox>();
     foreach (BoundingBox bb in bbset.getBoxes())
     {
         addBox((BoundingBox)bb.clone());
     }
 }
예제 #2
0
 public static bool isHitting(BoundingBoxSet boxset1, BoundingBoxSet boxset2)
 {
     foreach (BoundingBox box in boxset1.getBoxes())
     {
         bool t = box.isHitting(boxset2);
         if (!t)
         {
             continue;
         }
         return(t);
     }
     return(false);
 }