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