Пример #1
0
 public bool IntersectsWith(Cuboid other)
 {
     return(!(R < other.L || other.R < L || B < other.T || other.B < T ||
              N < other.F || other.N < F));
 }
Пример #2
0
 public bool Contains(Cuboid small)
 {
     return(L <= small.L && R >= small.R &&
            T <= small.T && B >= small.B &&
            N <= small.N && F >= small.F);
 }