Exemple #1
0
        public override bool intersects(UWB_BoundingVolume other)
        {
            eVolumeType vt = other.getType();

            if (eVolumeType.box == vt)
            {
                UWB_BoundingBox otherBox = other as UWB_BoundingBox;
                return(intesectBoxBox(mMin, mMax, otherBox.getMin(), otherBox.getMax()));
            }

            return(false);
        }
 public override void add(UWB_BoundingVolume other)
 {
     if(other != null)
     {
         eVolumeType vt = other.getType();
         if(eVolumeType.box == vt)
         {
             UWB_BoundingBox box = other as UWB_BoundingBox;
             add(box);
         }
     }
 }
Exemple #3
0
 public override void add(UWB_BoundingVolume other)
 {
     if (other != null)
     {
         eVolumeType vt = other.getType();
         if (eVolumeType.box == vt)
         {
             UWB_BoundingBox box = other as UWB_BoundingBox;
             add(box);
         }
     }
 }
        public override bool intersects(UWB_BoundingVolume other)
        {
            eVolumeType vt = other.getType();
            if (eVolumeType.box == vt)
            {
                UWB_BoundingBox otherBox = other as UWB_BoundingBox;
                return intesectBoxBox(mMin, mMax, otherBox.getMin(), otherBox.getMax());
            }

            return false;
        }