Ejemplo n.º 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));
        }
Ejemplo n.º 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);
 }