Ejemplo n.º 1
0
 public RectInt2(VectorInt2 location, VectorInt2 size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.X;
     Height = size.Y;
 }
Ejemplo n.º 2
0
 public RectInt2(VectorInt2 size)
 {
     X      = 0;
     Y      = 0;
     Width  = size.X;
     Height = size.Y;
 }
Ejemplo n.º 3
0
 public bool Contains(VectorInt2 point)
 {
     return(point.X >= Left && point.X <= Right && point.Y >= Top && point.Y <= Bottom);
 }