Пример #1
0
 public IntBounds(int x, int y, int w, int h) {
     LeftTop = new IntPoint(x, y);
     RightBottom = new IntPoint(x + w, y + h);
 }
Пример #2
0
 public bool Contains(IntPoint p) {
     return this.LeftTop.X <= p.X && LeftTop.Y <= p.Y && RightBottom.X >= p.X && RightBottom.Y > p.Y;
 }
Пример #3
0
 public IntBounds(IntPoint lt, IntPoint rb) {
     LeftTop = lt;
     RightBottom = rb;
 }