idTech4.idRectangle.Contains C# (CSharp) 메소드

Contains() 공개 메소드

public Contains ( float x, float y ) : bool
x float
y float
리턴 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));
		}