Beispiel #1
0
        public bool IsExtentsCross(Rect3D extents)
        {
            Rect3D sum = this + extents;

            return((sum.XRange <= this.XRange + extents.XRange) && (sum.YRange <= this.YRange + extents.YRange) && (sum.ZRange <= this.ZRange + extents.ZRange));
        }
Beispiel #2
0
 public bool IsExtentsIn(Rect3D extents)
 {
     return(extents.min.X >= min.X && extents.min.Y >= min.Y && extents.max.X <= max.X && extents.max.Y <= max.Y && extents.min.Z >= min.Z && extents.max.Z <= max.Z);
 }