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)); }