Beispiel #1
0
 public Rectangle(Vector2i position, Vector2i size) : this()
 {
     Position = position;
     Size     = position + size;
 }
Beispiel #2
0
 public bool IsInside(Vector2i loc)
 => X <= loc.X && loc.X <= X + Width && Y <= loc.Y && loc.Y <= Y + Height;
Beispiel #3
0
 public Rectangle(Vector2i size) : this()
 {
     Position = Vector2i.Zero;
     Size     = size;
 }