idTech4.idRectangle.Contains C# (CSharp) Method

Contains() public method

public Contains ( float x, float y ) : bool
x float
y float
return bool
		public bool Contains(float x, float y)
		{
			if((this.Width == 0) && (this.Height == 0))
			{
				return false;
			}

			return ((x >= this.X)
				&& (x <= this.Right)
				&& (y >= this.Y)
				&& (y <= this.Bottom));
		}