public IntBounds(int x, int y, int w, int h) { LeftTop = new IntPoint(x, y); RightBottom = new IntPoint(x + w, y + h); }
public bool Contains(IntPoint p) { return this.LeftTop.X <= p.X && LeftTop.Y <= p.Y && RightBottom.X >= p.X && RightBottom.Y > p.Y; }
public IntBounds(IntPoint lt, IntPoint rb) { LeftTop = lt; RightBottom = rb; }