Server.Misc.Weather.CheckContains C# (CSharp) Méthode

CheckContains() public static méthode

public static CheckContains ( Server.Rectangle2D big, Server.Rectangle2D small ) : bool
big Server.Rectangle2D
small Server.Rectangle2D
Résultat bool
		public static bool CheckContains( Rectangle2D big, Rectangle2D small )
		{
			if ( small.X < big.X )
				return false;

			if ( small.Y < big.Y )
				return false;

			if ( (small.X + small.Width) > (big.X + big.Width) )
				return false;

			if ( (small.Y + small.Height) > (big.Y + big.Height) )
				return false;

			return true;
		}