OpenTK.Graphics.Rectangle.IntersectsWith C# (CSharp) 메소드

IntersectsWith() 공개 메소드

IntersectsWith Method
Checks if a Rectangle intersects with this one.
public IntersectsWith ( Rectangle rect ) : bool
rect Rectangle
리턴 bool
        public bool IntersectsWith(Rectangle rect)
        {
            return !((Left >= rect.Right) || (Right <= rect.Left) ||
                (Top >= rect.Bottom) || (Bottom <= rect.Top));
        }