Ejemplo n.º 1
0
        public virtual bool Intersects(RectangularPrismObject rectangle)
        {
            if (Left <= rectangle.Right &&
                Right >= rectangle.Left &&
                Top <= rectangle.Bottom &&
                Bottom >= rectangle.Top &&
                Front >= rectangle.Back &&
                Back <= rectangle.Front)
            {
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        public virtual bool Intersects(RectangularPrismObject rectangle)
        {
            if (Left <= rectangle.Right &&
                Right >= rectangle.Left &&
                Top <= rectangle.Bottom &&
                Bottom >= rectangle.Top &&
                Front >= rectangle.Back &&
                Back <= rectangle.Front)
            {
                return true;
            }

            return false;
        }