Example #1
0
		public bool Contains(Rectangle rectangle)
		{
			return rectangle.Left >= Left && rectangle.Top >= Top && rectangle.Right <= Right && rectangle.Bottom <= Bottom;
		}
Example #2
0
		public bool Overlaps(Rectangle rectangle)
		{
			return Left < rectangle.Right && rectangle.Left < Right && Top < rectangle.Bottom && rectangle.Top < Bottom;
		}
Example #3
0
		public bool IntersectsWith(Rectangle rect)
		{
			return rect.Contains(this);
		}