Exemple #1
0
 public bool Intersects(volume range)
 {
     if (Max.X < range.Min.X || range.Max.X < Min.X)
     {
         return(false);
     }
     if (Max.Y < range.Min.Y || range.Max.Y < Min.Y)
     {
         return(false);
     }
     if (Max.Z < range.Min.Z || range.Max.Z < Min.Z)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public void MergeSelf(volume range)
 {
     Min.ElementWiseMinSelf(range.Min);
     Max.ElementWiseMaxSelf(range.Max);
 }
Exemple #3
0
 public volume Merge(volume range)
 {
     return(new volume(vector.ElementWiseMin(Min, range.Min), vector.ElementWiseMax(Max, range.Max)));
 }
Exemple #4
0
 public bool Contains(volume range)
 {
     return(Min <= range.Min && range.Max <= Max);
 }