示例#1
0
 public Rect2i(int x, int y, int width, int height)
 {
     _position = new Vector2i(x, y);
     _size     = new Vector2i(width, height);
 }
示例#2
0
 public Rect2i(Vector2i position, int width, int height)
 {
     _position = position;
     _size     = new Vector2i(width, height);
 }
示例#3
0
 public Rect2i(int x, int y, Vector2i size)
 {
     _position = new Vector2i(x, y);
     _size     = size;
 }
示例#4
0
 // Constructors
 public Rect2i(Vector2i position, Vector2i size)
 {
     _position = position;
     _size     = size;
 }